2011-06-01ãã1ã¶æéã®è¨äºä¸è¦§
window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parenâ¦
ãµã³ãFXãç¹ç°è£äºã®ãã¿ã¼ã¼ã¼ã¼ã¼ã¼ãï¼CMä¸ã Wiiããã³ãã³ãã¼3DSãiPod nanoãªã©ãããã ãµã³ãFX20å¨å¹´ãã¿ã¼ï¼ãã£ã³ãã¼ã³ä¸ã¿ããã ãã ãã¿é¡ãã£ã¬ã³ã¸ãªãã¦ã®ããã£ã¦ãã ãããæ¬é¡ã§ã¯ãªãã¦ãid:nagai_masato ãããããã¿ã¼ã¼ã¼ã¼ã¼ã¼â¦
[question:1307017391:title] è¤æ°åçãã¦ããã®ã¯ãç¬æã§1ã¤æãåºãã¾ããã ã¡ãã¥ã¼ åçæ° ããã±ã(ã³ã³ã¢ã»ããªãå«ã) 15 ã«ã¬ã¼ã©ã¤ã¹ 8 ã©ã¼ã¡ã³ 3 ããããã¯ã 3 ã½ãã麺 2 ãã«ã¼ããã³ã 2 ç¼ããã° 1 å ç¼ããããããã° 1 ã¹ãã²ãã£ããâ¦
Write Great CodeãVol.1ããã¼ãã¦ã§ã¢ãç¥ããã½ããã¦ã§ã¢ãæ¸ã æåã»ãã æåãã¼ã¿åãåºã«ãã¦ä½ãããè¤åãã¼ã¿å æåã®æ°å¦çãªéåã§ãéåã®ã¡ã³ãã¼ã®2é é¢ä¿ã«ãã ã¹ãéåè¡¨ç¾ æ£ç´ç解ä¸è¶³ã Joel on Software ã®ä¸ã§ãJoelã以ä¸ã®ããâ¦
æååãæ大nãã¤ãã«åãè©°ãããnæåã§ã¯ãªããnãã¤ãã ãã ãããã«ããã¤ãã®ä¸éå端ãªç¶æ (ä¸ä½1ãã¤ãã ããªã©)ã¯åºåããªãã stripIndent()ã®è¡æ«çã£ã¦ã¨ããã ãããã ã³ã¼ã def takeNbytes(str, n) { buf = '' str = str.toList().each { â¦
Groovyã§æååã®éä¸ã«ç ´å£çã«æååãæ¿å ¥ãã ã§ä»¥ä¸ã®ã³ã¡ã³ããããã£ã window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s);â¦
æ£ç¢ºã«è¨ãã¨ãåãã¦ã¤ã³ã¹ãã¼ã©ã使ã£ã¦Groovyãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã ä»ã¾ã§ã¯ãzipã解åãã¦ãGROOVY_HOMEã¨PATHãè¨å®ãã¦ããã®ã§ ã¤ã³ã¹ãã¼ã©ã使ç¨ãããã¨ãªãã£ãã ã¤ã³ã¹ãã¼ã«ããã®ã¯ãGroovy 1.8.0 ãã³ãã¼ãå http://groovy.codehausâ¦
Write Great CodeãVol.1ããã¼ãã¦ã§ã¢ãç¥ããã½ããã¦ã§ã¢ãæ¸ã 5.2.1 æååã®å½¢å¼ 0ã§çµããæåå é·ãæ¥é è¾ä»æåå æååé·1ãã¤ãã¨ã¼ãå以ä¸ã®8ãããæåã³ã¼ã 7ãããæåå HLAæåå > > > æå¤§é· > > > é·ã S t r i n g #0 è¨è¿°åãã¼â¦
ä»ãããã©ãã¼ãã¹ãXXXçã®ã¹ã¼ãã¼ã¨ã³ã¸ãã¢ã«ç¿ãã¾ãã¦ã Groovyçã®ã¹ã¼ãã¼ã¨ã³ã¸ãã¢ããå³æ£ãªãç¬æã¨åè¦ã«ããã 10人æãã¾ããã @kazuchika Groovyã©ã @Reloaded ããã°ã©ãã³ã°Groovyã®èè ã®1人 @nobeans No Beans, No Life. è±ç¡æ¥è¨ ãâ¦
æååãä»»æã®æåæ°ã«åå²ãã ä»åã¯ã4æåãã¨ã«åå²ãã ã³ã¼ã println "123456789".findAll(/(?m).{1,4}/) println "ãã\nããããããã".findAll(/.{1,4}/) println "ãã\nããããããã".findAll(/(?m).{1,4}/) def split_nchars(str, n){ retâ¦
æååããæåã³ã¼ããå¾ã ã³ã¼ã printf("%#x%n", (int)"a") printf("%#x%n", (int)"cba"[2]) printf("%#x%n", (int)"ã") printf("%#x%n", (int)"ããã"[0]) printf("%#x%n", (int)"ããã"[1]) å®è¡çµæ 0x61 0x61 0x3042 0x3042 0x3044ãã«ããã¤ããâ¦
Groovyã§æååã®ä¸é¨ãç ´å£çã«åé¤ãã åæ§ãã§ããªãã ã ã£ã¦ãGroovy/Javaã§ã¯ãRubyã®sub!()ã®ããã«ç´æ¥æååãªãã¸ã§ã¯ããå¤æ´ã¯ã§ããªãããã(ã ããï¼) ã§ããããã ã str1 = "xxxãxxxx" str2 = str1.replaceFirst(/ã/) { s -> s + "ãããâ¦
æè¡è©è«ç¤¾ãããããããå¾ æã®Groovyã®æ¬ãããã°ã©ãã³ã°Groovyããåºã¾ããçºå£²ã¯7/6ã«æ±ºå®ã ããã°ã©ãã³ã°GROOVY é¢è°· åæãä¸å 潤äºãé æ± ä¿¡æ´ãä¸é éæ²» ä¾¡æ ¼: ï¿¥ 3,360 ä¾¡æ ¼ã¯è¨è¼æç¹ã®ãã®ã§ããè³¼å ¥åã«Amazonã§ã確èªãã ããã Amazon.coâ¦
Write Great CodeãVol.1ããã¼ãã¦ã§ã¢ãç¥ããã½ããã¦ã§ã¢ãæ¸ã 5.1.1 ASCII æ¨æºASCIIã³ã¼ã/ASCIIæåã»ãã 128種 1ãã¤ãã®å ååã®128å($80ã$FF)ãæ®ã£ã¦ãã 32æåã¥ã¤ã®4ã¤ã®ã°ã«ã¼ã ã°ã«ã¼ã1 å¶å¾¡æå ãã£ãªãã¸ãªã¿ã¼ã³(CR) ã©ã¤ã³ãã£ã¼â¦
ãã£ã¹ã¯ãªãã¿ã®ã¹ãã«ã¯ãdescriptor ããeããããªãã¦ãoãã§ãã XXXX_DESCRIPTER ãªãã¦æ¥ããããããã¯ãã¤ãã£ã¡ãã ããã 俺ãããªããã俺ãããªãããæãã¦ä¿ºãããªãã ããä½ã£ãã®å 輩ã ããå 輩ã ã¨ããããã§ãæ¥ããããç®ã«ä¼ããããªâ¦
ãGroovyã§æååã®ä¸é¨ãç ´å£çã«åé¤ããããã¨ã¯ã§ããªãã ã ã£ã¦ãGroovy/Javaã§ã¯ãRubyã®sub!()ã®ããã«ç´æ¥æååãªãã¸ã§ã¯ããå¤æ´ã¯ã§ããªãããã(ã ããï¼) ã§ããããã ã Groovyã§æååã®éä¸ã«æååãæ¿å ¥ããã®æ·»åãåç §ã èªåèªèº«ã«ä»£â¦
æååã®æ«å°¾ã«æååã追å ããã«ã¯ãString#concat()ã+æ¼ç®åã ããçµåãããã ã³ã¼ã test1 = "abc" test2=test1.concat("def") println test1 println test2 println test1.class println test2.class test3 = "" test3 <<= "abc" test3 <<= "def" pâ¦
ãé¡ Windowsã¨Linuxã®å ±éã½ã¼ã¹ æ¥æ¬èªã®ã³ã¡ã³ããæ¸ã ãã®å ´åã®ããããã®ã½ã¼ã¹ã®ã³ã¼ãç³»WGC1 第4ç« æµ®åå°æ°ç¹è¡¨ç¾ 4.7æµ®åå°æ°ç¹æ¼ç®ã§ãã£ã¦ãã³ã¡ã³ããæ¥æ¬èªã§æ¸ããã®ã ããã©ããããã®ãã¨ã Unicodeã«ããã°ããã®ãã¨æã£ãã®ã ããããâ¦
Write Great CodeãVol.1ããã¼ãã¦ã§ã¢ãç¥ããã½ããã¦ã§ã¢ãæ¸ã 4.7 æµ®åå°æ°ç¹æ¼ç® æµ®åå°æ°ç¹ã®å ç®ã¨æ¸ç®ã¯C/C++ãªã©ã®é«ç´è¨èª æµ®åå°æ°ç¹ã®ä¹ç®ã¨é¤ç®ã¯é«ç´è¨èªãããã¢ã»ã³ãã©è¨èªã®æ¹ãç°¡å æµ®åå°æ°ç¹ã®å ç®ã¨æ¸ç®ã®ã³ã¼ã #include <stdio.h> #include <assert.h></assert.h></stdio.h>â¦
ãæ令:windowsä¸ã§nulã¨ããååã®ãã¡ã¤ã«ã¾ãã¯ãã©ã«ããä½ã£ã¦ãã ããããâã§ããã window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createâ¦
window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parenâ¦
ãã¢ããã¥ã¡ã³ãã ã¨ç©ºç½ãæå³ãæã¤ã®ã§ãã¤ã³ãã³ãã使ããã¨ãã§ããªãã ããããæã¯ããã¢ããã¥ã¡ã³ãã§ã¤ã³ãã³ãã使ã£ã¦æ¸ãã¦ãå¾ããæå°ã®ã¤ã³ãã³ãã« å¤æ´ããæ¹ãããã ããã ãã®ããã®ã¡ã½ããã ã½ã¼ã¹ test = """\ * foo \t * buz *â¦
常èãè¦ãã½ã¼ãã¢ã«ã´ãªãºã ï¼ãã®åã"sleep sort"ï¼ Sleep sortã®åè¨èªã§ã®å®è£ ã¾ã¨ã Groovyçããªããããªã®ã§ãå®è£ ãã¦ã¿ãã ã½ã¼ã¹ /* 100ããªç§ã®åä½ã«ããªãã¨ãã¹ã¬ãããèµ·ããå¦çã®æ¹ãéã㦠æ£ããsortãããªãã£ãã ã¹ã¬ãããèµ·ããâ¦