第6åiOS6ã®Apple製ãããã«ãGoogleãããããªã¼ãã¼ã¬ã¤ããã©ã¤ãã©ãªï¼ãã¬ã¼ã ã¯ã¼ã¯ å ¤ä¿®ä¸ 2012-10-04
Twitterã®TLã§ç¥ã£ãã®ã ããå°ãåã«æµ·å¤ã®æ²ç¤ºæ¿ã§"sleep sort"ã¨ããã½ã¼ãã¢ã«ã´ãªãºã ãçºæãããå ¬éãããããã ããã®ã¢ã«ã´ãªãºã ãé¢ç½ãã£ãã®ã§ç´¹ä»ãã¦ã¿ãã Genius sorting algorithm: Sleep sort 1 Name: Anonymous : 2011-01-20 12:22 諸åï¼ãªã¬ã¯å¤©æãããããªãããã®ã½ã¼ãã¢ã«ã´ãªãºã ãã¿ã¦ãããããã¤ãã©ãæãï¼ #!/bin/bash function f() { sleep "$1" echo "$1" } while [ -n "$1" ] do f "$1" & shift done wait example usage: ./sleepsort.bash 5 3 6 3 6 3 1 4 7 2 Name: Anonymous : 2011-01-20 12:27 >>1 ãªãâ¦ã ã¨
9å²ãããã¯ããã·ã¥ä½ãããã·ã¥ãªã®ãjavascriptã§åå¨ããã»ã¨ãã©ã®ãªãã¸ã§ã¯ãã®å®ä½ã¯ããã·ã¥ã ãã var arr = [0,1,2,3]; ã¨ããã¿ãã¨é å(人ã«ãã£ã¦ã¯ãªã¹ã)ã«è¦ããã¨æããã§ãå®éã¯éããã ã ãã㯠var has = {0:0,1:1,2:2,3:3}; ã¨åºæ¬çã«ã¯ç価ãªãã ããã ã¡ãã£ã¨æç¸ããã¦ããã¡ã½ãã(ã¤ã³ã¿ã¼ãã§ã¤ã¹)ãéãã ãã ãããã« arr[4] = 4; arr['x'] = 'string'; arr[-1] = -1; ã¨ãã¦ã¿ããã Firebugã§ç¢ºèªãã¦ã¿ãã¨[0, 1, 2, undefined, 4]ã¨ãããããªå¤ãããã£ã¦ãããã ã§ãarr[-1]ãarr['x']ã®å¤ã¯ä¿åããã¦ãªãã®ããªï¼ãããªãã¨ã¯ãªãã¡ããã¨ã¢ã¯ã»ã¹ã§ãããã ã ããã©ãããarr.xã§'string'ãããã£ã¦ãããã ã å¥ã®ä¾ã
To all who Think Themselves a Programmerããã ãµã³ãã©ã³ã·ã¹ã³ã®ããä¼ç¤¾ã§ã®æ±äººãªã®ã ãããã®ä¼ç¤¾ã§ã¯æ¸é¡é¸èã¨ãã¦ãã©ã®è¨èªã使ç¨ãã¦ãããã®ã§ææªãªHelloWorld(ç»é¢ã«Hello Worldã¨è¡¨ç¤ºãããã ãã®ããã°ã©ã )ãæ¸ãã¦ãããããããæ¡ç¨åºæºã«ãã¦ããã æåã®ã³ã¼ãã§ã¯ãªããææªãªææ³ã§è©¦ãã¨ã¯ãªããªãé¢ç½ããè¨èªé¸ã³ãªã©ã§ãåæ§ãåºãã®ã§ããã®äººã®æ½å¨çãªã¹ãã«ã試ããããæ¥æ¬ãããããªææ³ãæ¡ç¨ãã¦ããä¼æ¥ãªãã¦å°ãªãããªãã æ¡ç¨ãããä¾ åæããæç²ãã¦æ²è¼ãå¤æ ç(è¤ãè¨è)ãªHello Worldã®ä¸çã¸ãæå¾ ã ãã®1 y = lambda { |f| lambda { |x| lambda { |n| (f.call (x.call x)).call n } }. call lambda { |x| lambd
Javaã¯ããã¨ç´ æ´ãªè¨èªã ã Rubyã¯ç°¡åãªè±èªãã¡ãã£ã¨ç¥ã£ã¦ããã°åãã£ã¦ãã¾ããããæãããPerlãã¾ãã ãããåããããã ã Cãªãã¦ãå°å¦çã§ããã¨ãããã°å¹¼ç¨åå ã§ããç解ãå¯è½ã ã C++ãC#ãªããã¯æ £ããªã人ã¯æ¸æã£ã¦ãã¾ããããããªãããå®éã¯ç´ ç´ã ã£ããããã OCamlã¯äººã«ãã£ã¦åãå ¥ããå ´æãéã£ã¦ããããã¦æ··ä¹±ããã¡ã ãããã«æ¯ã¹ãã¨Haskellã¯ãã¬ãå°ãªãã¦æå¤ã¨æããã Pythonã¯æ¯è¼çé£ãããSchemeã¯Pythonã¨åç¨åº¦ãPythonããé£ããã Gaucheã¯ããªãé£ãããåãã¦è¦ã人ã¯ã©ããã¦ãééã£ãå¤æãä¸ããã¡ã ã ãããã¾ãååã®èªã¿æ¹ã®è©±ãªãã ãã©ã
ããã°ã©ãã«åãã¦ãã人ã¨åãã¦ããªã人ãããããã§ãã Jeff Atwood ããã®ãã©ããã¦ããã°ã©ãã«ã»ã»ã»ããã°ã©ã ãæ¸ããªãã®ã?ãï¼ ããã°ã©ã ãæ¸ããè ã¨ããã°ã©ã ãæ¸ããªãè ã®éã«ãã大ããªæºã«ã¤ãã¦ã¯ããç¥ããã¦ããããããã°ã©ãã®è·ã«å¿åãã¦ãã人éã¯ããã§ã«ãã®æºãé£ã³è¶ãã¦ãããã®ã ã¨ã°ããæã£ã¦ãããæããã«ããã¯å¦¥å½ãªä»®å®ã§ã¯ãªãããããããã°ã©ã ãæ¸ããªãããã°ã©ãã®é¢æ¥ã§æéãç¡é§ã«ããªãããã«ãFizzBuzzã¹ã¿ã¤ã«ã®ãµããåããå¿ è¦ã¨ãããã¨ã ã ã©ããªãã¨ã§ãåãä¸åãã¯ããã§ããããããããã«ã¯ç´å¾ããã¾ããããããããã°ã©ãã«ãªãã人ã®ä¸ã«ããæºãããããã§ãã Joel Spolsk ããã®ãJavaã¹ã¯ã¼ã«ã®å±éºãï¼ ç§ã®ãããããªçµé¨ããè¨ããã¦ãããã¨ãä¼çµ±çã«å¤§å¦ã®ã³ã³ãã¥ã¼ã¿ãµã¤ã¨ã³ã¹ã®ã«ãªãã¥ã©ã ã§æãããã¦ãããã®ã§ãå¤ãã®äººã
ã½ããã¦ã§ã¢éçºã³ã¹ãã®ã»ã¨ãã©ã¯ä¿å®ã®ã³ã¹ãã ã¨è¨ããã¦ãããå種統è¨ãããã示ãã¦ããããã ãã©ãèªåã®å®æã¨ãåãã å¤å ¸çãªã¦ã©ã¼ã¿ãã©ã¼ã«ã¢ãã«ã§ã¯ä¿å®ã¨ããã®ãæèãããªããããã£ã¦ãä¸çªä¸æµãªã®ã§ããã®éè¦æ§ã«å¯¾ããèªèãé常ã«èãã ä¿å®ã¨ããè¨èã¯è¥å¹²å¤§ãããªé¿ããæã¤ããããã°ã©ã ã®ä¸å ·åã®ä¿®æ£ããã¡ãã£ã¨ããæ©è½å¤æ´ãæ©è½è¿½å ãªã©ãªã©ãéç¨ãã¦ããã°ãã¤ã¾ããã®ã½ããã¦ã§ã¢ãå©ç¨ããã¦ããã°å¿ ãå¿ è¦ãªãã®ã§ãããä¿å®ããã¦ããªãã½ããã¦ã§ã¢ã¯æ©æ©å©ç¨ãããªããªãããæ¢ã«å©ç¨ããã¦ããªããã§ããã Unixã®å²å¦ãæã¡åºãã¾ã§ããªããåªããããã°ã©ãã¯ããã°ã©ã ãæ¸ãã®ã§ã¯ãªããåå©ç¨ãããããã«ãã¦ããã°ã©ã ãæ¸ãæ©ä¼ãæ¸ãããèè¦çã ã¨ãã¦ãããå¯è½ãªéãåå©ç¨ãã¦ãã©ããã¦ãæ¸ããããå¾ãªãå ´åã¯ãªãµã¤ã¯ã«ããã¡ãã£ãããããï¼ããã°ã©ãã«ã¨ã£ã¦ã®Reduce/R
@ITã®ãæ¥åç¨éã§Rubyã使ãä¸ã§ã®èª²é¡ ããèªãã§ãªãã ãæ²ãããªã£ãã ãã¼ã éçºã§Rubyã使ã£ãã¨ãã«ä»å¾èµ·ããããåé¡ã¨ãã¦ããµã³ã»ãã¤ã¯ãã·ã¹ãã 㺠ã·ã¹ãã æè¡çµ±æ¬æ¬é¨ ãã¼ããã¯ããã¸ã¹ãã®ä¸éé«å¿æ°ã¯ãããææããããä»äººã®æ¸ããPHPã³ã¼ãã®ã¡ã³ããã³ã¹ã¯ã§ããªããRubyã¯ã©ããã¨ããã°ãç¾ç¶ã¯ããããããä»å¾âè·æ¥ããã°ã©ãâã§ã¯ãªãã渡ãããä»æ§æ¸ãå®è£ ããâãµã©ãªã¼ãã³ããã°ã©ãâãå¢ãã¦ããã¨ãã³ã¼ãã®ã¹ãã²ããã£åã¯é¿ããããªãã ãããã ãæ¥åç¨éã§Rubyã使ãä¸ã§ã®èª²é¡ â ï¼ ITããå¼ç¨ã ããã¯è¨èªã®åé¡ã§ã¯ãªããæ¥æ¬ã®ã½ããã¦ã§ã¢ç£æ¥å ¨ä½ãæ±ããåé¡ã以åã«ããã½ããã¦ã§ã¢ã®ä»æ§æ¸ã¯æçã®ã¬ã·ãã«ä¼¼ã¦ãããã¨ããã¨ã³ããªã¼ã§æ¸ããããæ¬æ¥ã®ã½ããã¦ã§ã¢ä½ãã¨ã¯ãçµµãæããããé³æ¥½ãä½ã£ããã建ç©ããã¶ã¤ã³ããã®ã¨åããåµä½æ´»åãã§ããããã©ã
å人ãæãéãããããã¨ã¯ã©ãã©ã大ãããªã£ã¦ããã常èã¯çæéã§å¤ãããä»è²´éãªãã®ã¯ï¼ããã¦éå°ã«ãªããæ¥æ¬å¸å ´ãä¸çããã¸ã ã¦ã¦ããæ¥æ¬èªã®å£ã¯ãªããªããã¨ãã¦ããããããã®åããã«ãã仲éãä¿¡ããã---ãU-20ããã°ã©ãã³ã°ã»ã³ã³ãã¹ããã¨ããï¼20æ³ä»¥ä¸ã対象ã«ããã³ã³ãã¹ãã«åå ããè¥ãæè¡è ãã¡ã«ï¼ä¼ãããã£ããã¨ã ã ãã3å¹´ã»ã©ï¼ãã®ã³ã³ãã¹ãã®å¯©æ»ä¼ã«ãªãã¶ã¼ãã¨ããåç®ã§ç«ã¡ä¼ããã¦ããã£ã¦ããããªã«ãã審æ»å¡ã®ã²ã¨ãã§ããã¾ã¤ãã¨ããã²ãæ°ããç§ãå¿åãã¦ãå ¥è³ã§ããªããããããªããã¨ããã¬ãã«ã®é«ãã§ãããæããå¸ãå®æ度ã®é«ãä½åããï¼æããå¹ãåºãã¦ãã¾ãã¦ã¼ã¢ã¢ã®ããä½åãããè¨è ã¯å¥½ãã«æè¦ã ãè¨ã£ã¦å¯©æ»ã®è²¬ä»»ã¯è² ããªãã¨ããç¾å³ããå½¹ç®ã§ãããï¼ãããªã«ç¡æã§è¦ããã¦ããã ãã¦ããã®ã ãããã¨ããããã楽ãã¾ãã¦ããã ãã¦ãã(é¢é£è¨äºï¼ã ã¨ããã§
startmac çã¾ãã¦ã¯ããã¦ãããã°ã©ãã³ã°ãªããã®ãã¦ã¿ãã¨ã¦ã ããã¼ãWebãã£ã¬ã¯ã¿ã¼ããã¦ããã¨ãã¡ãã£ã¨ã§ããããèªåã§ããã°ã©ãã³ã°ãã§ããã¨ãããªã¨æãã¯ããããã§ãããã¼ã ã§ããã¾ãã«ãæ·å± ãé«ãã¦ããªããªãæãåºãããããã¦ã©ãã©ãææ¥ã¯æµãã¦ããã°ããã ã§ããã®ãã³Start Macã«å½é¸ãã¦MacBookãããã£ãã¨ãããããæ©ã«ã ãä»åº¦ããã絶対ã«ãä½ãä½ã§ãããã°ã©ãã³ã°ãå¦ã¼ãã ã¨æã£ããã§ããããã»ããMacã£ã¦ãã¼ã¹ãUNIXã ããããªãã¨ãªãããã°ã©ãã³ã°ã¨ãããããããããªæ°ããããã ãªã®ã§ãä»åã¯ã¡ãã£ã¨æ°åãå ¥ãã¦ãå çãè¦ã¤ãã¦ãæéãã¨ã£ã¦ãã¨ãã¨ããã£ã¦ãã¾ãã¾ããã ããã°ã©ãã³ã°ç«¥è²ãæ§ããç¸æã¯ããRuby on Railsããã¨ã¦ãç°¡åã«ããã°ã©ãã³ã°ãã§ããã¨è©±é¡ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãã Rubyã¨ããããã°ã©ãã³ã°è¨
Jeff Atwood / éæ¨é 訳 2007å¹´2æ26æ¥ ã¬ã¸ãã«ãã»ãã¬ã¤ã¹ã¦ã§ã¤ããæ¸ãã¦ãããã¨ãèªãã ã¨ããç§ã¯ãããªãããªãã ããã¨æã£ã¦ããã ç§ã¨åæ§ããã®èè ã¯ãããã°ã©ãã³ã°ã®ä»äºã¸ã®å¿åè 200人ä¸199人ã¯ã³ã¼ããã¾ã£ããæ¸ããªãã¨ãããã¨ã§è¦å´ãã¦ãããç¹°ãè¿ãããå½¼ãã¯ã©ããªã³ã¼ããæ¸ããªãã®ã ã å½¼ãå¼ç¨ãã¦ããèè ã¨ããã®ã¯ã¤ã ã©ã³ã®ãã¨ã§ãå½¼ã¯åç´ãªããã°ã©ã ãæ¸ããªãããã°ã©ãããããã追ãæã£ã¦ããã¨ãããã¨ã ã ããªãã®è©¦è¡é¯èª¤ã®æ«ã«ãã³ã¼ããæ¸ããã¨ãããã¦ãã人ãã¡ã¨ããã®ã¯ãåã«å¤§ããªåé¡ã«å¯¾ãã¦è¦å´ãã¦ããã®ã§ã¯ãªããã¨ãããã£ããããå°ããªåé¡(é£çµãªã¹ããå®è£ ããã¨ãããããª)ã«å¯¾ãã¦è¦å´ããã¨ãããã¨ã§ãããªããå½¼ãã¯ã¾ã£ããã¡ã£ã½ããªåé¡ã«è¦å´ãã¦ããã®ã ã ããã§ããããã£ãé¡ã®éçºè ãè¦åããããã®è³ªåãä½ãå§ããç§ãï½¢Fizz
ç»åæ¡å¤§å¾ãå¦çãç¹°ãè¿ãã¦ãã¾ãåé¡ããã£ãã®ã§ä¿®æ£ãã¾ããã http://yagi.xrea.jp/2006/12/miximix.user.js Greasemonkeyã¹ã¯ãªãããªã©ãæ¸ãã¦ãã¨ã対象HTMLä¸ã«JavaScriptãåãè¾¼ã¿ãããªããã¨ãããã¾ãã ãã¿ã«æ¸ãã¨å¤§å¤ããããã¨ã«ãã¾ããã script.innerHTML = "add = function(a, b){" + " var ans = a + b;" + " return ans;" + "}"; ããæ¸ãã¨ãã£ããã script.innerHTML = "add = " + (function(a, b){ var ans = a + b; return ans; }); é¢æ°ãæ®éã«è¨è¿°ããä¸ã§ããããæååã«å¤æã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}