"3D on 2D Canvas" demo move cursor to pan / click to swing
id:cho45 ããã§ãã£ã¨æ¸ããã³ã¼ãã話é¡ã«ãªã£ã¦ãã å¬éãã«æ¶ãè¡ãå¶æã¬ã¼ã«ã¯â夢ç©èªã«ãªã¢ã«ãæ±ããªãã - subtech ãã®ãããªæ¸ãæ¹ã¯ãèªåããã¾ã«ããã ã¨ããããã§ããã®æ¸ãæ¹ãããå©ç¹ã以ä¸ã®é ã«è§£èª¬ãã¦è¦ãã åç´ãª for æã®åé¡ç¹ with æã使ã£ãè§£æ±ºæ¹æ³ã¨ããã®å¾®å¦ãªåé¡ç¹ ç¡å颿°ã使ã£ãè§£æ±ºæ¹æ³ åç´ãª for æã®åé¡ç¹ ã¾ãã¯ã以ä¸ã® HTML ã«å¯¾ã㦠<ul> <li>hoge</li> <li>fuga</li> <li>piyo</li> </ul> 以ä¸ã® JavaScript ãå®è¡ã㦠var list = document.querySelectorAll('ul > li'); for (var i = 0, len = list.length; i < len; i++) { var node = list[i]; v
id:cheesepie:20070131:1170172709 æè¿ã¯ããããã風㫠JavaScript ãåå¼·ãã人ãå¢ãã¦ãã¦ã¨ã¦ãå¬ããã§ã ^^ id:cheesepie ããé å¼µã£ã¦ãã ããï¼ ã§ãã¡ãã£ã¨é åã¨é£æ³é åã®ä½¿ããããéããããªã®ã§ãã¨ã³ããªã¼ãæ¸ããã¨æãã¾ãããããã£ããã ã£ãããã¿ã¾ããï¼ï¼ ï¼ ãã£ã±ãããã®ã¸ãã JavaScript ã®é£ããã¨ããã®ã²ã¨ã¤ãªã®ã ãããã ã¨ãããã¨ã§ã JavaScript ã®é åã¨é£æ³é åã®éã ãã£ã¦ã¿ããã¼ é£æ³é åã¨ã¯ JavaScript ã§ã¯é£æ³é åã¯ä¸çªã·ã³ãã«ãªãªãã¸ã§ã¯ãã®ãã¨ã§ãããã¤ã¾ãããã¹ã¦ã®ãªãã¸ã§ã¯ãã¯é£æ³é åã§ããã 以ä¸ã®ãã¹ã¦ã®é£æ³é åã¯ã¾ã£ããåããã®ã§ããã // 1 var obj = { hoge: 'hoge' }; // 2 var obj = { 'hoge': 'h
Imagine Cup2æ¥ç®ã¨ãããã¨ã§ãããããå¦çãã¡ã®ãã¬ã¼ã³ãã¼ã·ã§ã³ãå§ã¾ãã¾ããã ã½ããã¦ã§ã¢ãã¶ã¤ã³é¨éã®ä¸æ¬¡äºé¸ã¯2åãããåããã¬ã¼ã³ã1åç®ã¨2åç®ã§ç°ãªã審æ»å¡ã«è¦ããã¨ããæ¹å¼ã§ããæ¥æ¬ããåå ãã¦ããNISLabã®ã¡ã³ãã¼ãã仿¥1åç®ã®ãã¬ã¼ã³ãã¼ã·ã§ã³ãè¡ã£ã¦ãã¾ãã ã¸ã£ãã¸ã«ã¼ã ã®åºãã®é¢ä¿ä¸ãåãã¡ã¯1åç®ã®ãã¬ã¼ã³ãã¼ã·ã§ã³ãè¦ããã¨ãã§ããªãã£ãã®ã§ãããNISLabãé°ã§æ¯ãã¦ããå°æ¿é浩å çã«ãæ®æ®µã®å½¼ãã®æ§åãECOGRIDã®éçºç§è©±ãèããã¨ãã§ãã¾ããã å®éã®ãã¬ã¼ã³ãã¼ã·ã§ã³ã®æ§åã¯ãææ¥ãä¼ããã¾ãã åç1ï¼å¤é£å¾ãããã«ã®ã«ãã§ã§å°æ¿å çã«ã¤ã³ã¿ãã¥ã¼ ãåå¼·ã¯å«ããã§ããä¸çä¸ã«ãªãããªã£ã¦ã¿ãããã¡ã³ãã¼ã®ã¹ãã¼ãªã¼ NISLabã®4人ã¯ãå°æ¿å çã®ç ç©¶å®¤ã«æå±ãã¦ãã¦ãå çã¯ã¡ã³ãã¼ã®ãã¨ãããã¯ããã·ãã¨å¼ã³ã¾ãã ãå
λ... λ... ã¡ãã£ã¨ã¨ããã¾ãã ã¯ããã« C++ Template ã®åå¼·ããã¦ãã¦ãæ°ãã¤ããã ãã¹ãããï¼å å´ããå¤å´ãè¦ããï¼åå-å¤ã®ç©ºéãåå¨ã å¤ããåå-å¤ã®ç©ºéãçæãããã¨ãå¯è½ã§ ãã®ç©ºéãçæããããã®æ å ±ãå¤ã¨ãã¦æ±ã åå-å¤ã®ç©ºéã®ä¸ã®ä¸ã¤ä»¥ä¸ã®å¤ãåãåºãã㨠ã©ã ããåºæ¥ãã ã¨ãã訳㧠Java ã§ã©ã ããä½ã£ã¦ã¿ã import static java.lang.System.out; public class Hoge { public static void main (String args[]) { // ãã£ã¼ãæ° 0 final λ zero = new λ () { λ call (final λ f) { return new λ () { λ call (final λ x) { return x; }}; }}; // ã
æ¬æ°ã§ãããªãonclick屿§ã¯é¿ãã¦ã©ã¤ãã©ãªãæ´»ç¨ãã¹ã - 帰ã£ã¦ããHolyGrailã¨HoryGrailã®åºå¥ãã¤ããªãæ¥è¨ ã«é¢ã㦠ãã®å ã HTML ã« onclick ã¨æ¸ãã¦ãç³ãæããããªãããã«æ¸ãã¦ããï¼ï¼ åã onclick 屿§ããã¡ã ã¨æã£ã¦ããæä»£ãããã¾ãããã§ããä»ã¯æã 使ããªãã ï¼ããã§ãã HTML 㨠JS ã§åæ¥ãã¦ããå ´åã¯ã使ããªãã»ãããããã^^ï¼ããã ãã¯è¨ã£ã¦ãããï¼ JavaScript å ¥éã®è¨äºãæ¸ãã¨ãã« onclick 屿§ããã¡ã ã¨ããããããããæ¬è³ªçã§ãªããã¨ã説æããªãããããªãã ç¾ç¶ã§ã¯ onclick 屿§ãããã£ã¨ãç°¡åã« HTML ã«ã¤ãã³ãããããã³ã°ã§ããæ¹æ³ã ããããããªã«ç®ããããã¦ãªãã¦ãããããããªãããªãï¼ ãã¨ã㰠以ä¸ã¯ãã¯ãªãã¯æã« href ã« GET ãéãããã® oncli
å½¹ã«ç«ã¡ãããªæ å ±ã§ãã¤ã³ã¿ã¼ãããã§æã«å ¥ãããã¦ãè¯ããããªã®ã«ãæã«å ¥ããªãæ å ±ã£ã¦ã©ããªãã®ãããã¾ããï¼
ãªããããï¼ï¼ Javaã®åæ¨è«Utilsã¯ã©ã¹ - yukobaã®ããã° ã£ã¦ãã¨ã§ãã£ã¦ã¿ã ãã㯠OK import java.util.ArrayList; import static java.lang.System.out; public class Main { public static <S, T> T cast(S o) { return (T) o; } public static void main(String[] args) { ArrayList a = new ArrayList(); ArrayList<String> b = cast(a); b.add("hoge"); b.add("fuga"); out.println(b); Hoge c = cast(a); // ãã£ã¹ãã§ããªãå ´åã¯å®è¡æä¾å¤ã«ãªã } } class Hoge {} $
çµç·¯ id:kazuhooku ãããä¸å¹´åã«ãã£ã¦ããã¨ã§ãã Kazuho@Cybozu Labs: JavaScript/1.7 ã§å調çãã«ãã¹ã¬ãã 仿¥ãã£ã¨æåãçè§£ã§ããã®ã¨ã Weave ã®ã½ã¼ã¹ãèªãã§ããããã®ãã¯ããã¯ãããªããªä½¿ã£ã¦ãã¦ãã¡ãwwãã¾wwwãã£ã¦ãªã£ãã®ã§ãèªåã§ãä½ã£ã¦ã¿ããã¨æãã¾ããã ã»ã¨ãã© id:kazuhooku ããã®ã¨åããã®ãªã®ã§ãæ¢åºã§ãï¼ï¼æ¬å½ã«ãããã¨ããããã¾ããï¼ï¼ ã¾ãã yield ã¨ã¯ä½ã yield ã¨ã¯ã JavaScript 1.7 ããå°å ¥ãããæ©è½ã§ãã 以ä¸ã« yield ã®ç´°ããæåã示ãã¦ããã¾ãã function f() { // ãªããã®å¦ç yield; // ... (1) // ãªããã®å¦ç yield; // ... (2) // ãªããã®å¦ç } var g = f(); // ã
ãããµã2008ã»13æ¥ã®æçµã»ãã·ã§ã³ã«ã¯ãµã¤ãã¦ãºã®å¤©éä»å²æ°ãç»å£ããamachangãã¨ãããã³ãã«ãã¼ã ã§ç¥ãããå½¼ãæããJavaScriptè¨èªãã«ã¤ãã¦èªã£ãã 天鿰ã¯JavaScriptã¨ããè¨èªã«ã¤ãã¦ããåå¿è åãè¨èªãããªãã¸ã§ã¯ãæåè¨èªãããããã¿ã¤ããã¼ã¹è¨èªãã颿°æåè¨èªãã¨ããç¹å¾´ãããã¨æãã¨è¿°ã¹ãåå¿è åãè¨èªã¨ããç¹ã«ã¤ãã¦ã¯ãã ããã¨ãã£ã¦ãä¸ç´è ã«åããªãã¨ããæå³ã§ã¯ãªãããã¨ããä¸ã§ã ã»ã¨ãã©ã®PCã§å®è¡ç°å¢ãæ´ã£ã¦ããããããã«å§ããããç¹ ç¡æã®ããã°ãµã¼ãã¹ãªã©ãå©ç¨ãããã¨ã§ã使ãã¦ããã«å ¬éã§ããç¹ alertã«ãããã¤ã¢ãã°ããã¯ã¹ã®è¡¨ç¤ºãªã©ãåä½ãè¦ãç®ã§ããããããç¹ Firebugãã¯ããã¨ããéçºç°å¢ãæ´ã£ã¦ããç¹ ãªã©ããããã ãªãã¸ã§ã¯ãæåè¨èªã¨ããç¹ã«ã¤ãã¦ã¯ãããªãã¸ã§ã¯ãæåã®è¨èªã¯å¤æ°ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}