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
<%= line_chart @goals.map { |goal| {name: goal.name, data: goal.feats.group_by_week(:created_at).count} } %> or <%= line_chart Feat.group(:goal_id).group_by_week(:created_at).count %> Say Goodbye To Timeouts Make your pages load super fast and stop worrying about timeouts. Give each chart its own endpoint. <%= line_chart completed_tasks_charts_path %> And in your controller, pass the data as JSON.
RubyJSããããã¦ãããããªæéã§ææ¥ãå¿é ãªä»æ¥ãã®é ã§ãã RubyJSã¯Underscore.jsãstring.jsã¿ãããªJavaScriptã®ã©ã¤ãã©ãªã§ãã ç¹å¾´ã¯Rubyã®æ©è½ãJSã§å®è£ ãã¦ããã¨ãããJSçãªæ¸ãæ¹ãç¡è¦ãã¦ã以ä¸ã«Rubyãããæ¸ãããã«æ³¨åããã¦ãã¾ããRubySpecã«æºæ ããããã«æ¸ããã¦ããã®ã§ãRubyãæ®æ®µä½¿ã£ã¦ãã人ã«ã¯ç¡æèã«ä½¿ããããã«ãªã£ã¦ãã¾ãã 使ãæ¹ã¯ç°¡åã§ã©ã¤ãã©ãªãèªã¿è¾¼ãã§ãJSã®ä»»æã®ãªãã¸ã§ã¯ããããªããã£ããªå¤ã RubyJS ã¡ã½ããã使ã£ã¦ã©ãããã¦ããã¾ãããã® RubyJS ã¡ã½ãããé©å㪠RubyJS ãªãã¸ã§ã¯ãã«å¤æãã¦ããã¾ãããã¡ãã R ã¨ããã¨ã¤ãªã¢ã¹ãåããã¦ããã®ã§ããã¡ãã使ãã¾ãããã R 'hoge' #=> RubyJS.String R 1 #=> RubyJS.Fixnu
LL Decadeã§ãPolyglotã®è©±ãèãã¦é¢ç½ãã£ãã®ã§ãç§ããã£ã¦ã¿ã¾ããã ããã§ãFizzBuzzãæ¸ãã¦ã¿ã¾ããã fizzbuzz.rbã§ãããJavaScriptã¨ãã¦ãåä½ãã¾ããRubyã®ãã¼ã¸ã§ã³ã¯1.9ã§ãã 'use strict'; "#{define_singleton_method(:var){|*v|}||";/*"}" # */ var puts=console.log; /* # */ Number.prototype.to_s = function(){return this;}; var max=100, a=0, b=0; "#{";/*"}" (1..max).each { |i| # */ for(var i=1;i<=max;i++){ a = i % 3 < 1; b = i % 5 < 1; puts((a ? 'fizz' : '
å¤ãã¨ã³ããªã¼ãªã®ã§ãããã¾ã æææ¤ç´¢ã¨ã³ã¸ã³çµç±ï¼ã§ããã£ãããæ¹ãããã¿ãããªã®ã§è¿½è¨ Titanium Desktopã¯ä»ã¯TideSDKã¨å¤ãã£ã¦ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãã«ãªã£ã¦ãã¾ãã ããããäºãå ã«ã Ruby,Python,PHP,JavaScriptãã£ã¦ã人ã§ãã¹ã¯ãããã¢ããªä½æã«èå³ãã人㯠Appcelerator Titanium Desktop ããã£ã¦ã¿ãã¨ããã¨æãã¾ããOS X, Windows,Linuxã¨ãã«ããã©ãããã©ã¼ã ãªãã¹ã¯ãããã¢ããªãhtml,JavaScript,Ruby,Pythonçã®æ £ã親ããã æè¡ã§ç°¡åã«ä½æãå ¬éãããã¨ãã§ãã¾ãã äºæ³ä»¥ä¸ã«ãã¯ãããã¦ãã¿ãããªã®ã§ãTitanium Desktopã®ç¹å¾´ãç®æ¡æ¸ãã§ãã追å ãã¦ããã¾ãã ä¸è¨ã§è¨ãã°JavaScriptã§è¨è¿°ããAdobe AIRã®ãããªRIAãã¬ã¼
twitter stream APIã¨ã¯ãtwitterã®ã¹ãã¼ã¿ã¹æ´æ°ã«å¯¾ãã¦ãã¼ã¯ã¼ãã§trackããããããã°ã«ã¼ãå ã«å±ããã¹ãã¼ã¿ã¹æ´æ°ããã£ã«ã¿ãããåºæ¥ãAPIãªã®ã ãã©ãå®éã«ã¯chunkedãªã¹ããªã¼ã ãæµãã¦æ¥ã¦ããã®ã§ãã£ã¦ãããã使ã£ãWebã¢ããªãä½ãéã«ã¯long pollã使ãã®ãè¯ãããã ãã¯ã©ã¤ã¢ã³ããµã¤ãã§javascriptãå¦çããéã« ãµã¼ããµã¤ãã§ã¹ãã¼ã¿ã¹æ´æ°ãFIFOã«æºãè¾¼ã ã¯ã©ã¤ã¢ã³ããããªã¯ã¨ã¹ãããããã¯(long poll)ãFIFOããã¹ãã¼ã¿ã¹ãéåºãã ã¯ã©ã¤ã¢ã³ããµã¤ãã§long pollãè¡ãç»é¢ãæ´æ°ãã å度ãµã¼ãã¸ãªã¯ã¨ã¹ããæãã ãç¹°ãè¿ãã®ã§ããã°ããã£ããã¹ããªã¼ã ãªã®ã«ã¢ããªãµã¼ãã¨ã®æ¥ç¶ãåã£ã¦ãã¾ãäºã«ãªããåºæ¥ãã°ã¯ã©ã¤ã¢ã³ãããWebã¢ããªãã¹ããªã¼ãã³ã°ã¨ããããããããªãããµã¼ãããã®ã¹ãã¼ã¿
The other day at LA RubyConf during the Johnson presentation, I showed a few slides which I donât think were given the time that they deserve. Not that we didnât have enough time, I just donât think I made as big a deal about them as I should have. Those particular slides demonstrated HTML Document Object manipulation executed in JavaScript outside any web browser. Those particular slides, and tha
2007å¹´10æ16æ¥01:41 by å±±å´æ³°å® ã¦ã¼ã¶ãå ¥åããå±éºãªã¿ã°ãåãé¤ãé²ãã æ¹æ³ ã«ãã´ãªRubyå°æ Tweet sparklegate Comment(0)Trackback(0) Hpricotã¨ããé«éã§è¶ 便å©ãªhtml scraperããããã§ãã RSSã§ç幸ãã«ãªãã¤ã¤ãããã®ãæä¸ã«ãä»æ´å ç¥ããããã¦htmlãªããããã¼ã¹ãã¦ä½ã®å½¹ã«ç«ã¤ã®ãã¨ã ããããããå½¹ã«ç«ã¤ãã§ãã è¯ãããã®ã¯ããããµã¤ãã®htmlãåå¾ãã¦ãã¦ãã¼ã¸ã®ãã¼ã¿è§£æãããã¨è¨ã£ããã®ã ããããããããçãªã¢ã«ã´ãªãºã ãçµã¿ç«ã¦ãéã«éå®ããããã§ãã ã§ããããã§ã¯ãããªç©æ¥µçã«htmlãåãã«è¡ãéã«å½¹ç«ã¦ãã®ã§ã¯ãªããhtmlãéãã¤ããããéã«ãã®htmlããã®ãµã¤ãã«ã¨ã£ã¦å®å ¨ãªãã®ããæ¤è¨¼ããå¿ è¦ãªãä¿®æ£ããã¦ãã¾ãã¨ããã¢ã«ã´ãªãºã ã«ãã¦ã¿ããã¨æãã¾ãã ããã§ç´¹
å æ¥ã®æ¨ææ¥ãYLUGã«åå ãã¾ããã笹ç°èä¸ããã® YARV(Yet Another RubyVM) ã®è¬æ¼ä¼ã§ããããªãããä¼ã¯ãéå»9å¹´éã®éã§ãï¼ï¼ï¼ãäºãçãä¸ããã ã£ãããã§ãããã楽ããã£ãã§ããåå è ã®ã¬ãã«ãé«ããYARV ã®ä¸ã®è©±ãè²ã ã¨èããã¦ããã ãã¾ããã ãã®å¸ã§ãã¶ã¤ãã¦ãºã»ã©ãã®ç«¹è¿«ããã«ããRuby on JavaScript ã¤ãããªãã®ï¼ãã¨ãèªããåããã®ã§ããã®é±æ«ãä½ã£ã¦ã¿ã¾ãã⪠åã¥ãã¦ãHotRubyãã¡ããã¨åãã¦ãããã http://hotruby.accelart.jp/ åºæ¬çãªææ³ã¯ã大ä½ãå®è£ ãã¾ããããã ããçµã¿è¾¼ã¿é¢æ°ãçµã¿è¾¼ã¿ã¯ã©ã¹ã¯ã大é¨åãå®è£ ããã¦ãã¾ãããææ³é¢ã§ããä¾å¤ã¯å®è£ ãã¦ãã¾ããã ä»çµã¿ã¯ãä¸åº¦ããµã¼ãã¼ã® Ruby 1.9.0 ã® YARV ã§ãªãã³ã¼ãåã«ã³ã³ãã¤ã«ããã¦ãããã JSON ã§ã¯ã©
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}