Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
CoffeeScriptã®é¢æ°ã¯æç¤ºçã«returnããã¹ã | CreativeStyle æ¬å½ã«é ãã®ããããã確ããã¾ãããã é©å½ã«ã§ã£ã¡ãããã³ã¼ãã§ã f1 = -> for i in [1, 2, 3] for j in [4, 5, 6] i + j f2 = -> for i in [1, 2, 3] for j in [4, 5, 6] i + j return console.time "f1" for i in [1..100000] then f1() console.timeEnd "f1" console.time "f2" for i in [1..100000] then f2() console.timeEnd "f2" å®è¡ãã¦ã¿ã¾ã $ coffee hoge.coffee f1: 105ms f2: 4ms ç´26åéããã¨ãããã¨ããããã¾ãã
ãã¶ãåã¯äººé¡ã®æ æ°ã極ãããããªcoffee-scriptã®ææ³ã好ããããã®ã ãã©ããã®çµæåãæ¸ããcoffee-scriptãä½ãå§ãã¦ãã¾ã£ãã Forkå ã¯CoffeeScriptRedux mizchi/CoffeeScriptRedux https://github.com/mizchi/CoffeeScriptRedux/tree/type ã¨ããããä»ã®çã ã¨æ¬¡ã®ã³ã¼ããéãã ç®æ¨ x :: Number = 3 y :: String = "hello" z :: Boolean = false # z :: String = 4 #=> Error # y = x #=> Error a :: Any = 3 a = 'fadfa' b = 'a' fn :: Function = -> x = 3 n = -> i = '' f2 :: Function = (
Geohash Javascript Demonstration (c) 2008 David Troy Released under the MIT License SUMMARY This is a basic demonstration of how the GeoHash algorithm can be used to generate bounding box searches without the use of specialized spatial indexing approaches. This can be especially helpful in cases where spatial indexes are either not supported or do not scale to high volumes. Environments such as Go
ã¦ã§ããã¼ã¸ã§ãã使ç¨ããããã¹ã©ã¤ãã¼ãéç¥ããã«ããã¼ã«ããããªã©ãCoffeeScriptã§ä½æããjQueryã®ãã©ã°ã¤ã³ãç´¹ä»ãã¾ãã MiniJs MiniJs -GitHub [ad#ad-2] MiniJsã¯ããªã¼ã®ãªã¼ãã³ã½ã¼ã¹ã§ãç¾å¨5種é¡ï¼+1éçºä¸ï¼ã®ãã©ã°ã¤ã³ãããã¾ãã åãã¢ã¨å®è£ æ¹æ³ãç°¡åã«ç´¹ä»ãã¾ãã â»ã³ã¼ãã¯æãã·ã³ãã«ãªä¾ã§ãåã¹ã¯ãªããã§å¤æ°ã®ãªãã·ã§ã³ãåãã¦ãã¾ãã Count ã¯ã¼ããã»ã³ãã³ã¹ãã«ã¦ã³ãããããããã¯ã¹æåæ°ã®æ®ãã表示ãå¶éãã¾ãã HTML <section id="example-1"> <textarea autofocus="autofocus"></textarea> </section> JavaScript $(function() { $('#example-1 textarea').miniCount()
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ã叿ç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æç¨¿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æç¨¿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
æè¿CoffeeScriptã¨ãããã®ãç¥ã£ã¦å°ã調ã¹ã¦ã¿ãããæ¬å®¶ã®è¨èªãªãã¡ã¬ã³ã¹ããããªã«å¤ããªãã£ãã®ã§æ¥æ¬èªè¨³ã«ææ¦ãã¦ã¿ã¾ããã http://coffeescript.org/ CoffeeScriptã¨ã¯JavaScriptã«ã³ã³ãã¤ã«å¯è½ãªã·ã³ãã«ãªè¨èªã§ããã¯ã©ã¹ãã¼ã¹ã®ãªãã¸ã§ã¯ãæåãPython/Rubyãåèã«ããå å 表è¨ãæååå 夿°å±éãã¹ã¿ãã£ãã¯ã¹ã³ã¼ããªã©ãªã©ãããã¾ãã å ã«ãã¿ãã©ã·ããã¦ããã¨æ¥æ¬èªè¨³ã¯æ¢ã«å¥ã®æ¹ããã¦ãã¾ããï¼¼(^o^)ï¼ http://sites.google.com/site/sappariwiki/coffeescript ãããåã®æ¥æ¬èªè¨³ããå ¨ç¶ããããããï¼ã¶ã£ã¡ããè±èªã¯å¤§ã®è¦æãªã®ã§ã翻訳ããã¯ãããã©ééã£ã¦ãã¨ããã¯è²ã ããã¯ãã§ãã ã§ãã¾ãæè¡çãªããã¥ã¡ã³ãã®ç¿»è¨³ã«ææ¦ããã®ã¯ãæ°å¹´åã«åè·ã§RDP(R
å人製ä½ã®ã·ã¹ãã ã®jsãcoffeeã«å®å ¨ç§»è¡ããã®ã§ãã®éæãæ¸ãã¾ããããã¾ã§ãå人çãªææ³ã§ããæãæ¹ã¯äººããããã§ãã ã¡ãªã¿ã«åã¯åå¼·ãå ¼ãã¦æã§ç§»è¡ããã¾ããããjs2coffeeã¨ãããã¼ã«ã使ãã¨èªåã§å¤æãã¦ããããããã§ãã å ã«çµè« coffeeã®æ¹ãããã¨æãã ããããæ¹å¤ã«ãjsæ¸ãã°ããããããã¨ããã®ããããã©ã極端ãªè©±ããã¢ã»ã³ãã©æ¸ãã°ããããããã¨é«ç´è¨èªãåºã¦ããé ã«è¨ã£ã¦ã人ã¨ä¸»å¼µã®æ¹åæ§ã¯ä¼¼ã¦ãã¨æããæ¥µç«¯ããããã©ã jsã«ã¯è½ã¨ãç©´ããã£ã±ããããæ £ãã¦ããã¾ã«ã¯ã¾ããvarãå¿ãããã颿°ã®é ã§å ¨é¨ã®varãåæãããã¨ãããã©ã¯ãã£ã¹ã«å¾ã£ã¦ãããåé·ã«ãªã£ã¦ç®¡çããã³ã¹ãé«ããªã£ããã coffeeã使ãã¨ããããä½è¨ãªåé¡ãæèããªãã¦ãããªãã®ã¯ã¨ã¦ã大ããã ãããjsã§ã§ãããã¨ã®å ¨ã¦ãcoffeeã§ã§ããã工夫ãå¿ è¦ã«ãªãå ´
This is the home of Addy Osmani (Web Developer, Designer & Author). Here you can find some great tips and tutorials on everything to do with web development and even a few useful code samples! Our engineering team at Aol Europe have been working on a number of exciting new projects over the past few months including a brand new high-performance real-time web framework called SocketStream.We're goi
ããã«ã¡ã¯ãæ¯å¹´è±ç²çã«ãªãããã¦ãã飯å¡ã§ãã æè¿ã®Node.jsã®æ®åãªã©ã«ãã£ã¦ãµã¼ããµã¤ãJavaScriptçéãçãä¸ãã£ã¦ãã¾ãã ãããªããããªJavaScriptãã©ã¯ã«ãã¤ã¨ã¬ã¬ã³ãã«æ¸ãããã®CoffeeScriptã¨ããè¨èªããã¥ã¼ããªã¢ã«é¢¨ã«ç´¹ä»ãã¾ãã ä½ãããã®ã©ã¤ãã©ãªãèªåã§æ¸ãç¨åº¦ã«JavaScriptã§éçºãã¦ãã人ã¯çµ¶å¯¾ã«ä½¿ã£ãã»ããããã¨æãã¾ãã JavaScriptãç¥ã£ã¦ããã°1-2æéç¨åº¦ã§ååé§ä½¿ã§ããããã«ãªãã¾ãã ï¼2011/6/28ï¼@m_satyræ§ã«ãææé ããç®æãä¿®æ£ãã¾ãããï¼ ç®æ¬¡ CoffeeScriptã¨ã¯ï¼ ã¤ã³ã¹ãã¼ã« Hello World æ§æ 颿° 夿°å±é Objectã®çæ ã«ã¼ã åå¨ãã§ã㯠ãã¢ããã¥ã¡ã³ã thisã®ãã¤ã³ã ã¯ã©ã¹ ç¡å颿° {var} Tips ?ã®ä½¿ãåã åå¨ãã§ãã¯
CoffeeScript, Meet Backbone.js is a simple Backbone.js tutorial written in CoffeeScript comprised of self-explanatory "hello world" examples of increasing complexity. It was designed to provide a smoother transition from zero to the popular Todos example The bulk of this tutorial is a rewrite of the original hello-backbonejs tutorial. Backbone.js offers a lean MVC framework for organizing your Jav
ReadWriteWeb Hack 2011.1.7ã®ã¨ã³ã㪠Interview: Jeremy Ashkenas Talks About CoffeeScript coffeescriptã¯ãªã¨ã¼ã¿Jeremy Ashkenasã¸ã®ã¤ã³ã¿ãã¥ã¼ 以䏿ãèªãã å 容 ï¼±ï¼documentcloudã§ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãèµ°ããã¦ãã®ã«æ´ã«coffeescriptå§ãããã jsã´ãªã´ãªæ¸ãwebã¢ããªã®éçºãã£ã¦ãã¨ãã«ã¢ã¤ãã£ã¢ãè¨ããã§ãã£ã jsã®åé·ãããããã£ã¨è§£æ¾ãã¦ãããè¨èªãjsã®good partsãåããã¼ããªãè¨èª coffeescriptã¨underscore.jsããã®ï¼ã¤ã¯åãåé¡ã¸ã®è§£æ±ºãã¢ããã¼ããéãã ã coffeeããã¸ã§ã¯ãï¼å人ããã¸ã§ã¯ããdocuentcloudã§ä½¿ããã¨ãæ£å½åã§ããªãããã ï¼±ï¼Jeremyãè峿ã£ã¦ãliterat
Ruby on Railsã®çã¿ã®è¦ªãDHHãå¨ç±ãã37signalsãMac OS Xç¨ã®Rackãµã¼ããPowãããªã¼ãã³ã½ã¼ã¹ã§å ¬éãã¾ãããã¡ãã£ã¨ããã¾ã§ã«ãªã種é¡ã®ãããã¯ãã§ããã®ä½¿ãåæã®ã·ã³ãã«ãã¨ã¢ã¤ãã¢ã«é¼»è¡ãåºããã«ãªãã¾ãããå®è£ ã«Node.jsã¨CoffeeScriptã使ã£ã¦ããã¨ããã®ãé¢ç½ãã§ãã Powã®å£²ãã¯ããZero-configurationãï¼è¨å®è¦ããï¼ã¨ãããã¨ã§ãè¤æ°ã®Rails/Sinatraã¢ããªããã¼ã«ã«ã§åããã¦éçºãããããªã¨ãã«ãä»®æ³çãªãã¡ã¤ã³åãæè»½ã«å²ãå½ã¦ã¦ã¢ã¯ã»ã¹ã§ããããã«ãã¦ããããã¨ãããã®ã§ããã¤ã³ã¹ãã¼ã«ã¯curlã®ã³ãã³ãä¸çºã§ã $ curl get.pow.cx | sh ã¨ããã ããããã¦ãRailsãSinatraãªã©ã®Rackã¢ããªã®ãã£ã¬ã¯ããªãPowã®ãã£ã¬ã¯ããªã«ã·ã³ããªãã¯ãªã³ã¯ãè²¼ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}