You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
partial = (f) -> require_length = f.length partialized = (args...) -> if require_length <= args.length # é¢æ°ã«å¿ è¦ãªå¼æ°ããã§ã«è¶³ãã¦ãã g = f.apply(null, args.slice(0, require_length)) # é©ç¨ãã¦çµæãåãåºã if typeof g is "function" # çµæãé¢æ°ãè¿ã£ã¦ãã # args ã®ä½ãããã次ã®é¢æ°ãæ´ã«é¨åé©ç¨ãã¦è¿ã partial(g).apply(null, args.slice(require_length))) else g # é¢æ°ä»¥å¤ã®ãã®ãããããé©ç¨ããã£ãäºã«ãã¦ãªãã¸ã§ã¯ããè¿ã else # å¼æ°ã足ãã¦ãªãå ´åã足ããªãå¼æ°ãå¾ ã¡åããé¢æ°ãè¿ã partial_apply =
æè¿CoffeeScriptçéã®ããã´ã¹ãã£ã¢(æ»èª)ãè³ããã¦ãããCoffeeScriptã使ãã¹ããã使ãããã¹ããï¼ãã¨ãã話é¡ã«ã¤ãã¦ã¾ã¨ãã¦ã¿ãã 以ä¸ã®è¨äºç´¹ä»ã¯è¶ 訳ãã¤è¦ç´ãªã®ã§è©³ããç¥ããã人ã¯å è¨äºãåç §ã®ãã¨ã ãã¨ã®çºç«¯ã¯ãã®è¨äºã SnackJSã®ä½è ãCoffeeScriptããã£ã¹ãã A Case Against Using CoffeeScript by Ryan Florence ãããã°ã®åé¡ CoffeeScriptãçæããJavaScriptã¯ãã¡ãã¨ãã¦ãããã©ãçµå±ã¯èªåãæ¸ããã³ã¼ããããªãããèªã¿ã«ãããèªåã§ç´æ¥æ¸ããã»ããè¦ãããã ããã«CoffeeScriptããããã°ããã¯ã¼ã¯ããã¼ã¯å¤§å¤ã ã ã¾ãåé¡ãJavaScriptå ã®ã©ãã§çºçããã®ããçªãæ¢ãã(CoffeeScriptã®ã³ã¼ãã¨è¡åä½ã§å¯¾å¿ãã¦ãªããã大å¤ã )
WTF JS? Global variables function plus_two(n) { two = 2; return n + two; } plus_two(3); // 5 - obviously, 3 + 2 = 5 two; // 2 - wtf, JS? The with block var foo = 5; with (obj) foo; // 5, unless obj.foo exists Wtf is the deal with the == operator? 2 === "2"; // false - obviously a number is not a string 2 == "2"; // true - wtf JS?
0. node.js ã® Vows ãã¬ã¼ã ã¯ã¼ã¯ãã¨ã¦ããããã JavaScript ã®TDD, BDDãã¬ã¼ã ã¯ã¼ã¯ã¯ãããããããã©ï¼ãã¹ãçµæã®è¦ãç®ã®è¯ãã¨è¨è¿°ã®æ¥½ã㧠Vows ã¨ãããã¬ã¼ã ã¯ã¼ã¯ã使ã£ã¦ããï¼RSpec ããã®å½±é¿ãåãã¦ãã¦ï¼Rack ã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãã¨åããããªæè¦ã§æ¸ããï¼ã¨ããã®ãè¯ãï¼ ãã¨ãã°ãããªæãã§ãã¹ãã³ã¼ãã CoffeeScript ã§æ¸ã 㧠--spec ãªãã·ã§ã³ãã¤ãã¦å®è¡ããã¨ãããã風ã«è¡¨ç¤ºãã¦ãããï¼ assertion ã§ãã¹ããéããªãã¨é»è²ãï¼å é¨ã¨ã©ã¼ã®å ´åã¯èµ¤ã«ã©ãã«ã表示ãããï¼ ãã£ããå ¨é¨éã㨠ãã®ããã«è¡¨ç¤ºãããï¼è¦ãç®ãè¯ããï¼ã©ããªã³ã°ãä¸å¯§ã«ããã¨ãã¹ãã®å 容ãããããããï¼ å ã node.js ã®ãã¹ãç¨ãªã®ã§ï¼require exports ãªã©ï¼ pure JavaScript
CSS3 Transition ãã»ã¼ã¢ãã³ãã©ã¦ã¶ã§ä½¿ããããã«ãªã£ã¦ãã æ¨å¹´ CSS3 ã®ä»æ§ã«ã¢ãã¡ã¼ã·ã§ã³ããããã£ãå ãã£ã¦ï¼ä¸æçãªç±çããã£ãããã ãã©ï¼ããããä¸å¹´ãã¦ã©ã®ãã©ã¦ã¶ã«ãä¸å¿ã® CSS Animation / Transition ãåºæ¥ãããã«ãªã£ã¦ããï¼ãããï¼W3C ã®ä»æ§ã®ã¨ãã transition: <property> <duration> <timing-function> <deley> ãæå®ãã¦åãããã§ãªãï¼-moz- ãªã -webkit- ãªãã®ãã¬ãã£ãã¯ã¹ãã¾ã å¿ è¦ãªç¾ç¶ã ã£ããããï¼ã? ããï¼IE ãåã¯åº§ã£ã¦ã CSS ããããã£ãçµå± jQuery ã§å·®ãè¾¼ãæ¹å㧠æè¿ï¼ãã£ã¨èªåã®ãµã¤ããéçºãããã¨æã£ã¦ï¼Sinatra + mongoDB ã§ï¼View ã Haml Sass CoffeeScript + jQ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}