perl
ä¹ ã ã«æ´æ°ãã¾ãããããªãèªåç¨ã®ã¡ã¢ã§ãorz ruby ã ã¨ä»¥ä¸ã®ããã«æ¸ãã®ãperlã§ã©ãæ¸ãã°ããã®ããã # ruby # ç¡åããã·ã¥(ã¨ããå¼ã³æ¹ã§ãããããããªããã©)ãä½æã¨åæã«å¤ãå¼ã£å¼µã {:k1 => 'v1', :k2 => 'v2'}[:k2] # ==> "v2" ä¸å¿ããâ¦
ã¨ã¦ãç°¡åã html <html> <head> <meta charset="utf-8"> </head> <body> <form action="save.cgi" method="POST" enctype="multipart/form-data"> <input type="file" name="files" multiple /> <input type="submit" value="submit" /> </form> </body> </html> input type="file" 㧠multipleå±æ§ã追å ããã ãã save.â¦
canvasã«æããããã¼ã¿ãåå¾ããã«ã¯ãcanvas.toDataURL() ã使ãã¾ãã toDataURL()ã§å¾ãããã®ã¯ãbase64ã¨ã³ã³ã¼ããããç»åæ å ±ãªã®ã§ã ããããµã¼ãã«éã£ã¦ãbase64ãã³ã¼ããã¦ä¿åã¨ããæµãã§ãã toDataURL()ãã¦ããã®ãã¼ã¿ãPOSTããé¨åâ¦
use strict; use warnings; my (%hash, $msg); $msg = (exists $hash{key}) ? "exist" : "not exist"; print "$msg\n"; # not exist # 1é層ç®ãåç § my $tmp = $hash{key}; $msg = (exists $hash{key}) ? "exist" : "not exist"; print "$msg\n"; # not exiâ¦
ãã¿å ã¯ã@javascripter ããã®POSTï¼http://twitter.com/javascripter/statuses/8367943818ï¼ for(a=[],b=[],c=1;c++<1E3;)if(!a[c])for(b.push(d=c);d<1E3;a[d+=c]=1);alert("ç´ æ°" + b); ã¨ãid:nitoyon ããã®ActionScript3 ã§ç´ æ°åæã short coding â¦
LWP::UserAgentã§timeoutãã»ããããã¨ãã«ã ãtimeoutãã¨ããã以å¤ã®ã¨ã©ã¼ããå¤å¥ãããã 以ä¸ã®ãããªã³ã¼ããè¦ã¤ããã®ã ãã use LWP::UserAgent; use XML::TreePP; my $ua = LWP::UserAgent->new(); $ua->timeout(3); my $tpp = XML::TreePP->nâ¦
4ã¶æè¿ãåãpythonã®ã³ã¼ãããã¼ã£ã¦è¨äº(ã«ã¼ãã§é åãä½ãæ¸ãæ¹)ãæ¸ããã®ã ãã©ãããã«ãããã¦ãperlã ã¨ããæ¸ãããã¨ããã³ã¡ã³ããé ãã¦ããã id:tkmc perlã ã¨ãããªæãï¼ return grep $_, @array; ãã®ã¨ãã¯ããã¸ãããããã«æã£ã¦ãâ¦
å ¨è§/åè§å¤æã®ã§ãã便å©ãªã¢ã¸ã¥ã¼ã« Lingua::JA::Regular::Unicode ä½è æ§blog: http://d.hatena.ne.jp/tokuhirom/20081018/1224300947 CPAN(ver0.03): Lingua::JA::Regular::Unicode - convert japanese chars. - metacpan.org ã®ä½¿ãæ¹(ï¼)ã¡ã¢ ãã©ã°â¦
æ£è¦è¡¨ç¾ã§ä½¿ããã\p{P}(å¥èªç¹) ã \p{S}(è¨å·) ã \p{InCjkSymbolsAndPunctuation}(å ¨è§è¨å·) ãªã©ãªã©ã¯ä¾¿å©ã ããå®éã«ä¸èº«ãä½ãªã®ããç¥ããã«ä½¿ãã®ã¯å°ã ãããã®ã§èª¿ã¹ã¦ã¿ã unicode.org ã§ãæå¾ ããä¸è¦§è¡¨ãçºè¦ã§ããå°ã£ã*1ãã ãªããããâ¦