Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Rubyã®éçºå¹çãé«ãããï¼ vimã§RubyãRailséçºããã¨ãã«ãããã©ã«ãã®ç¶æ ã§ã¯éåã§ãããã éçºå¹çãé«ãã9ã¤ã®ãã©ã°ã¤ã³ãç´¹ä»ãã¾ãã alpaca_tagsãããctagsã®éåæçæ neosnippetãããRails/sinatra/rspecçã®è£å® swtich.vimãããã.present?:.brank?ãªã©å¯¾å¿ãããã¼ã¯ã¼ããåãæ¿ãã rubocopããããææ³ã¨ã©ã¼ãã¹ã¿ã¤ã«ãã§ã㯠vim-railsããããRailsããã¸ã§ã¯ãç¨ãã©ã°ã¤ã³ unite-railsããããRailsããã¸ã§ã¯ãç¨Unite-source vim-endwiseãããif...endãªã©å¯¾å¿ãããã¼ã¯ã¼ãã®èªåè£å® ruby-matchitãã %ãæ¡å¼µãã¦ãdef...endçã®ãã¼ã¯ã¼ãã移ååºæ¥ãããã«ããã vim-refãããããRuby/Gems
(追è¨ï¼2014-3-3) Gvizã«ã¤ãã¦ã®ã¾ã¨ãé ãä½ãã¾ããã Gvizã®ç®æ¬¡ - Rubyã®ä¸çããGraphvizã®ä¸çã«ããã«ã¡ã¯ï¼ å ¨å½ã®é§ æ å ±ãæä¾ãããé§ ãã¼ã¿ï¼ï½ï½ãã¨ããç´ æ´ããããµã¤ããããã¾ããç¡æã§ãã¦ã³ãã¼ãã§ããCSVå½¢å¼ã®é§ ãã¼ã¿ã«ã¯åé§ ã®ç®¡çééä¼ç¤¾ãè·¯ç·ã®æ å ±ã ãã§ãªããé§ ã®çµåº¦ã»ç·¯åº¦æ å ±ã¾ã§ããå«ã¾ãã¦ãã¾ãããã³ããã¹ãã©ã·ã¤ãã¤ãããã·ã©ãã«ãã¿ãã¬ããºã«ã·ã¤ã ãããªããã§â¦ ä»åã¯Gvizã使ã£ã¦ãæ±äº¬ã®å°ä¸éãããªãã¡æ±äº¬ã¡ããï¼é½å¶ï¼æ±äº¬é½äº¤éå±ï¼ã®è·¯ç·å³ã«ææ¦ãã¦ã¿ã¾ãã é§ ãã¼ã¿ã®åå¾ ã¾ãã¯é§ ãã¼ã¿ãåå¾ãã¾ããå ã®ãµã¤ãã®ãã¦ã³ãã¼ãé ãããã¹ã¿ã¼ãã¼ã¿ï¼m_station.csvï¼ãDLãã¾ãããµã¤ãã®ä»æ§æ¸é ã«ããããã«ãåé§ æ å ±ã¯æ¬¡ã®14ãã£ã¼ã«ãã§æ§æããã¦ãã¾ãã ãã¼ã¿ä»æ§ 1. ééæ¦è¦ã³ã¼ã 2. è·¯ç·ã³ã¼ã 3.
(追è¨ï¼2014-3-3) Gvizã«ã¤ãã¦ã®ã¾ã¨ãé ãä½ãã¾ããã Gvizã®ç®æ¬¡ - Rubyã®ä¸çããGraphvizã®ä¸çã«ããã«ã¡ã¯ï¼ ãã®ããã°ã¨ãã§ãã¾ã«ç¡åã ã¨ãæåã ã¨ãã®ãã£ã¼ãã®æ¹ãããªãã°ã©ããæ¸ãããã¨æããã¨ãããããã§ã¾ãããã®ãæä¸ã§ä»æ´VISIOã¨ãããå¾ãªãããGraphvizã®dotãã¡ã¤ã«ãæ¸ããã¨ã«ãªããã ãã©DOTè¨èªã¯å¶å¾¡æ§é ãæã£ã¦ãªãããçµå±ããé«ç´ãªè¨èªã«ããã¤ã³ã¿ãã§ã¼ã¹ãå¿ è¦ã«ãªãããã§Rubyã®åºçªã£ã¦ãã¨ã«ãªããã ãã©Githubã§âgraphviz rubyâã§æ¤ç´¢ããã¨1200件以ä¸ãã®ãªãã¸ããªãããããããã ããã§ãã®ä¸ããé©å½ãªãã®ãé¸ãã§ä½¿ãã°ããã£ã¦ãã¨ãªãã ãããã©ãããã«ããã ãããã¨ã©ããé¸ãã§ãããå ¨ç¶ããããªãããçµå±The Ruby Toolboxå½ããã§âgraphvizâã«ããããã20件ãããã®ä¸ã
rvm ã®ã¤ã³ã¹ãã¼ã« http://beginrescueend.com/rvm/install/ ä»åã¯ãä¸è¬ã¦ã¼ã¶ã§ã¤ã³ã¹ãã¼ã«ãè¡ãã ä¸è¨ãµã¤ããåèã« user$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )ãå®è¡ããã Downloading RVM from wayneeseguin branch master curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More deta
å æ¥ã®è¨äºã§requireã®é«éåããããã¨æ¸ãã¦ãããããã¶ãæéã空ãã¦ãã¾ãã¾ãããé ã ã¨ããé²ã¿å ·åã§ç³ã訳ãªãã®ã§ãããã¾ãã¯é«éåã®åºæºã¨ãªããã³ããã¼ã¯ãåã£ã¦ã¿ã¾ãããåºæºç¹ããªããã°ãå ·ä½çã«ã©ã®ãããé«éåãããããããªãããã§ãã ãã³ããã¼ã¯ãè¡ã£ãç°å¢ ã¾ããã³ããã¼ã¯ãè¡ã£ãç°å¢ãªã®ã§ããããWindowsã§é ããã¨è¨ãããåé¡ã®æ¤è¨¼ã§ãã®ã§ãæ¯è¼å¯¾è±¡ã¨ãã¦Macã§ãåããã³ããã¼ã¯ãè¡ããã¨ã«ãã¾ããããã·ã³ã¯ããããLate 2008 MacBookãã¹ããã¯ã¯ä»¥ä¸ã®éãã§ãã CPU 2.4GHz Intel Core 2 Duo ã¡ã¢ãª 4GB 1067MHz DDR3 ãã¼ããã£ã¹ã¯ TOSHIBA MK3253GSX 320GB 5400RPM 8MB Buffer ã¾ããWindowsã®ã·ã¹ãã ã¯BootCampã§èµ·åããWindowsXP Hom
追è¨ï¼ããããªè¨ã£ã¦ãã®æ£è¦è¡¨ç¾ã¯ãã¿ãªã®ã§ï¼å®éã«ç´ æ°å¤å®ãè¡ãããå ´åã¯ï¼ãã£ã¨å¥ãªè³¢ãã¢ã«ã´ãªãºã ã使ã£ãã»ããè¯ãã§ã æ£è¦è¡¨ç¾ã§ç´ æ°ãå¤å®ã§ããã¨ããè¨äºãè¦ãã®ã§è©¦ãã¦ã¿ãï¼ http://www.noulakaz.net/weblog/2007/03/18/a-regular-expression-to-check-for-prime-numbers/ ãã®è¨äºã«ãã㨠/^1?$|^(11+?)\1+$/ ã¨ããæ£è¦è¡¨ç¾ã使ãã¨ï¼ç´ æ°å¤å®ãåºæ¥ããããï¼ããæ´æ° n ãç´ æ°ãã©ããå¤å®ãããå ´åã¯ï¼"1" * nã¨ããæååããã®æ£è¦è¡¨ç¾ã«ããããããã©ããã調ã¹ãã°ããï¼ãããããã°éç´ æ°ï¼ãããããªããã°ç´ æ°ã¨ãªãï¼ãã ãï¼"1" * n ã¯ï¼ä¾ãã°ï¼n ã 4 ãªãã° "1111" 㨠1 ã 4 åé£ç¶ãã¦ç¶ãæååã¨ãªãï¼ Rubyã§æ¸ããç´ æ°å¤å®ããã°ã©ã ã¯ãã
æ¥å¹´ãä½ãããï¼ãµãã®ã¨ãæçãæºå«ããã2024å¹´æ¥ã®è¨é² æ¥ã¯èªçã楽ããå£ç¯ 1å¹´ã®ä¸ã§æãèªçã楽ããå£ç¯ã¯æ¥ã ã¨æããã¹ã¼ãã¼ã®æ£ã«ãããããªè²åãã®éèã並ã¶ã¨èªç¶ã¨ããããå¼¾ãã ä¸ã§ãã¨ãããã®ã¯å±±èã ãæ©ãã¨2æä¸æ¬ãããã並ã³å§ããããã¯ãã¿ã©ã®è½ããµãã®ã¨ãã¨ç¶ããæ¡ã®é ã«ã¯ããããã¦ãããâ¦
æ°ãããã¨ã«ãã£ã¬ã³ã¸ãããã¨æãã¤ã¤ãããã®ããã«æ°ããæè¡ãç¿å¾ããã¨ãªãã¨ã³ã¹ããé«ããªã£ã¦ãã¾ãããã£ã¨æ軽ã«ã¯ãããããã¨ã¹ã ã¼ãºã§ã¯ãªãã ããããç¹ã«ããã°ã©ãã³ã°è¨èªã¯ç¿å¾ã³ã¹ããé«ããæ°è»½ã«ã¯ããããã¨æãã¾ã§ã«ã¯ç¸å½æéãããã£ã¦ãã¾ãã iPhoneã§RubyCocoaã使ããï¼ å¹¸ãã«ãã¦ãObjective-Cã«ã¯ä»è¨èªã¨ã®ããªãã¸ãè¡ãæè¡ããããããã§æ³¨ç®ãããã®ãiPhone RubyCocoaã ã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯iPhone RubyCocoaããã®åã®éãiPhoneåããã¤ãã£ãã¢ããªã±ã¼ã·ã§ã³ãRubyã§éçºããããã®ãã¬ã¼ã ã¯ã¼ã¯ã ã iPhone RubyCocoaã¯RubyCocoaãiPhoneåãã«å±éãããã¬ã¼ã ã¯ã¼ã¯ã ãRubyã®ã¹ã¯ãªããã§iPhoneåãã®è¨è¿°ãã§ããã³ã³ãã¤ã«ãããã¨ã§ãã¤ãã£ããªã¢ããªã±
GT Nitro: Car Game Drag Raceã¯ãå ¸åçãªã«ã¼ã²ã¼ã ã§ã¯ããã¾ãããããã¯ã¹ãã¼ãããã¯ã¼ãã¹ãã«å ¨éã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ãããã¬ã¼ãã¯å¿ãã¦ãããã¯ãã©ãã°ã¬ã¼ã¹ããã¤ãã¼ï¼å¤å ¸çãªã¯ã©ã·ãã¯ããæªæ¥çãªãã¼ã¹ãã¾ã§ãæãã¯ã¼ã«ã§éãè»ã¨ã«ã¼ã¬ã¼ã¹ã§ãã¾ããã¹ãã£ãã¯ã·ããããã¹ã¿ã¼ããããããè³¢ã使ã£ã¦ç«¶äºãæã¡ç ´ãå¿ è¦ãããã¾ãããã®ã«ã¼ã¬ã¼ã¹ã²ã¼ã ã¯ãã®ãªã¢ã«ãªç©çå¦ã¨ç´ æ´ãããã°ã©ãã£ãã¯ã¹ã§ããªãã®å¿ãççºããã¾ããããã¾ã§ãã¬ã¤ãããã¨ã®ãªããããªãã®ã§ãã GT Nitroã¯ããªãã¬ãã¯ã¹ã¨ã¿ã¤ãã³ã°ã試ãã«ã¼ã¬ã¼ã¹ã²ã¼ã ã§ããæ£ããç¬éã«ã®ã¢ãã·ããããã¬ã¹ãæãåãè¸ãå¿ è¦ãããã¾ããã¾ãã大ç©ãã¡ã¨ç«¶ãã¤ã¤ãè»ã®ãã¥ã¼ãã³ã°ã¨ã¢ããã°ã¬ã¼ããè¡ããªããã°ãªãã¾ãããä¸çä¸ã§æé«ã®ãã©ã¤ãã¼ã¨è»ã¨ã«ã¼ã¬ã¼ã¹ã«æããã¨ã«ãªãããã©ãã°ã¬ã¼ã¹ã®çå
2009/05/12 ç±³æ°è社大æã®ãã¥ã¼ã¨ã¼ã¯ã»ã¿ã¤ã ãºã¯5æ11æ¥ãRubyã«ãã大è¦æ¨¡åæ£å¦çã®ãã¼ã«ããããMap/Reduce Toolkitãï¼MRToolkitï¼ãGPLv3ã®ä¸ã«ãªã¼ãã³ã½ã¼ã¹ã§å ¬éããã¨çºè¡¨ãããMRToolkitã¯ããã§ã«ç¨¼åãã¦ããã¯ã©ã¹ã¿ä¸ã®Hadoopã¨åããã¦ä½¿ããã¨ã§Rubyã§å®¹æã«Map/Reduceå¦çãè¨è¿°ãããã¨ãã§ããä¸ç¨®ã®ã©ããã¼ãå¦çèªä½ã¯Hadoopãè¡ãããã§ã«Hadoopã使ã£ã¦ããã¦ã¼ã¶ã¼ã§ããã°ãä¸å°è¦æ¨¡ã®ããã¸ã§ã¯ãã«å¯¾ãã¦ãããã«MRToolkitãé©ç¨å¯è½ã¨ãã¦ããã ããã©ã«ãã§æç¨ãªMapãReduceã®å¦çã¢ã¸ã¥ã¼ã«ãå«ã¾ãã¦ãã¦ãæ°è¡ã®Rubyã¹ã¯ãªãããæ¸ãã ãã§ãä¾ãã°è¨å¤§ãªApacheã®ãã°ããIPã¢ãã¬ã¹å¥ã®é²è¦§å±¥æ´ãã¾ã¨ããã¨ãã£ãå¦çãå¯è½ã¨ãããç¬èªã«MapãReduceã®å¦çãå®ç¾©ãããã¨ã
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
http://www.atok.com/useful/developer/api/ ATOK ãã¤ã¬ã¯ã API ãå ¬éãããRuby/Perl 㧠ATOK ãã©ã°ã¤ã³ãä½ããããã«ãªã£ãã®ã§ãæ©éç°¡åãã¤ä½ã§ãã§ãããã©ã°ã¤ã³ãä½ã£ã¦ã¿ã¾ããã http://rails2u.com/misc/atok_plugin_ruby_eval.zip ã»ããã¢ããããATOKãã¤ã¬ã¯ãAPIãã¤ãããRuby ã®å®è¡ç°å¢ãããã¨ãATOK ã§å ¥åä¸ã« Ctrl + Insert 㧠Ruby ã®å®è¡çµæãå¤æããã¦è¿ã£ã¦ãã¾ãããã¨ãã°é»åã£ã½ãããããããã¨ãã«ã¯ 24*24ã¨å ¥åããã¨ãã« Ctrl+Insert ãæã¤ã¨ 576ãªæååãè¿ã£ã¦ããã®ã§ãé»åã¨ãã¦ã¤ããã¦ä¾¿å©ï¼ ã¾ã 'korehabenri'.split(//).join(' ')ãCtrl+Insert ã§å¤æããã¨
æ²ã½ããã¦ã§ã¢æ ªå¼ä¼ç¤¾ã¯ãæ²éä¿¡ã·ã¹ãã æ ªå¼ä¼ç¤¾ããã³æ ªå¼ä¼ç¤¾æ²ã¤ã³ãã©ããã¯ã¨å¹³æ22å¹´10æ1æ¥ããã£ã¦åä½µãããã¾ãããæ°ä¼ç¤¾åã¯ãæ ªå¼ä¼ç¤¾OKIã½ããã¦ã§ã¢ã¨ãªãã¾ãã3社ãè¡ã£ã¦ããã¾ãäºæ¥ã¯æ°ä¼ç¤¾ã«ã¦å¾æ¥éãç¶ç¶ãããã¾ãã
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Writing for Ruby Inside, I get to see a lot of Ruby code. Most is good, but sometimes we forget some of Ruby's shortcuts and tricks and reinvent the wheel instead. In this post I present 21 different Ruby "tricks," from those that most experienced developers use every day to the more obscure. Whatever your level, a refresh
ããããã誰ããããæ·±å¤ã®Webãµã¼ãã£ã³ã¯ã究極ã®ã¨ããæéã®ç¡é§ã§ã¯ãªãã®ãããããªãã ããã¯ãWebã§å¤¢ãã¿ã¦ããã®ã«ã»ããªããªãã®ã ã(T.B=ãªã¼ãWebã®åµæããã) æè¿ã¯Railsããã¡ãã£ã¨é¢ããç´ ã®Rubyã§ããã¤ãã©ã¤ãã©ãªã®ä½¿ãæ¹ãªããã調ã¹ã¦ãã¾ãã Rubyã®ã¹ã¯ãªãããæ¸ãã®ã«ä»¥åã¯RDEã使ã£ã¦ãããã§ããããã£ãããªã®ã§ãããVimã«ç§»è¡ãã¦ã¿ã¾ããã ã¨ã¯ãããããã°å¨ãã®ä¾¿å©ãªGUIã¯ä¸åç¡ãã®ã§ãããã¾ã§ã¡ãã£ã¨ããã¹ã¯ãªãããæ¸ãç¨åº¦ã®ä½¿ãæ¹ã«ãªãã¾ãã é常ã®å®è¡æ¹æ³ï¼ é常Rubyã®ä½¿ç¨ã§ããç°å¢ã§ããã°ã以ä¸ã®ã³ãã³ããå®è¡ãããã¨ã§ç¾å¨éãã¦ãããã¡ã¤ã«ãRubyã§å®è¡ã§ãã¾ãã :!ruby % Windowsã®ã³ãã³ãããã³ãããå¥çªã§ç«ã¡ä¸ãããã³ãã³ãã©ã¤ã³ããå®è¡ããã¨ãã¨åããããªç¶æ ã§å®è¡çµæã表示ããã¾ãã :!rubyã³
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}