ãªãã¤ã¬ã¯ããã¾ã 以åããã«ãã£ãããã°ã¯ãç¾å¨ http://mbahack.syui.ml/2012/08/iterm2.html ã«ããã¾ãã ãªãã¤ã¬ã¯ããã¾ããã
(Last Updated On: 2018å¹´10æ7æ¥)Railsã§å¤ç¨ããã¦ããActiveRecordã®ã¤ã³ã¸ã§ã¯ã·ã§ã³ãã¿ã¼ã³ãç°¡åã«ç´¹ä»ãã¾ããåºå ¸ã¯rails-sqli.orgãªã®ã§ãã詳ãã解説ã¯ãã¡ãã§ç¢ºèªãã¦ãã ãããç¹ã«æ°ãã¤ããå¿ è¦ãããã¨æãããç©ã®ã¿ãããã¯ã¢ãããã¾ããã Exists?ã¡ã½ãã User.exists? params[:user] params[:user]ãªã©ã®ä½¿ãæ¹ã¯å±éºã§ããRailsã¯PHPãªã©ã¨åæ§ã«user[]ã¨ãããã©ã¡ã¼ã¿ã¼ã§é ååãã¾ãã ?user[]=1 ãå ¥åã®å ´åã SELECT 1 AS one FROM "users" WHERE (1) LIMIT 1 ã¨ãªãä¸æ£ãªã¯ã¨ãªãå®è¡ããã¾ãã Calculateã¡ã½ãã Calculateã¡ã½ããã¯SQLã®éç´é¢æ°ãå®è¡ããã¡ã½ããã§ããaverageãcalcula
2014-05-05 ã¤ã麺ãå«ããªäººã¯ãããããã¤ããã®åå¨ãç¥ããªãã®ã§ã¯ãªãã æè¿ã¤ã麺é£ã¹ã¦ãªããã§ããã©ãµã¨æããã¨ããã£ãã®ã§æ¸ãã¾ãããã¼ãã好ããªäººã¯å¤ãã¨æãã¾ãããèªåã®å¥½ããªãã¼ãããã£ã¦ãããããªãã§ããããã£ããã好ãããã£ã¦ãã好ããé¤æ²¹å³ã好ããå³åã好ããåå¤è±éª¨ã好ãã家系ã好ãã細麺ã好ãã太麺ã好ãã£ã¦ãã§ããã¼ãã話ããã¦ããã¨ãã¤ã麺ãå«ããã£ã¦è¨ã人ãã¡ãã»ãããæ°ããã¾ãããã®æã¯ã¬ããã¼ããè«ç¾©ãããªãã£ãã®ã§ããããªãã ã¼ãã¸ã¸ã¼ãã£ã¦æãã§èãæµãã¦ããã ãã©çç±èãã®å¿ãã¦ã¾ãããããããå«ããªçç±ã¨ãã¦ã¯ãã¹ã¼ãã¨ä¸ç·ã«ãªã£ã¦ãæ®éã®ãã¼ããã好ããã¨ãã麺ã¨ã¹ã¼ããå¥ã ã£ã¦ãªãã§ï¼ãã¨ãã麺ãç±ããªããããã¨ãè²ã ããã¨æããã§ããããã§ãã©ã¼ã«ã¹ãããã®ã¯æå¾ã®ã麺ãç±ããªããããã«ã¤ãã§ã§ããã²ãã£ã¨ãã¦ãã¤ãããç¥ããªããã
ãRubyã®caseããä¸ç¥ãããã¼è¦ã¯ãã(è¨èªå)ã®switchãããªã©ã¨æ©åç¹ãããã®å¾ããã®çã®ä¾¡å¤ãç¥ããã¨ãªãä¸çãçµããããã°ã©ããè¿å¹´è·¡ã絶ããªããå ãã¦ããä»æ´æ¡ä»¶åå²ï¼Rubyã¯OOPãªãã ããããªã¢ãã£ãºã ãããï¼ãã¨ããHashã«Procçªã£è¾¼ãã§callããã®ããªã¬æµããã¨ãããã¶ã人ãã¡ãã¾ãå¢å ã®ä¸éã辿ã£ã¦ããã ãããªä¸ã®ä¸ã«ãã£ã¦ãã¼ãã¯ä¸è¨ãã§ããã°ã¬ãã³ã¨ä¸è¨ç³ãä¸ããããçã¾ããè²ã¡ãRubyãªã¼ããããæ¯éã¨ããããªäººãã¡ã«ãRubyã®caseãã«ã¤ãã¦ä¸è¨ç³ãä¸ãã¦ããããã â åé¡ï¼ â åånameãã¬ãã«levelããã¤ã³ãpointã®åå±æ§ãæã£ãè¤æ°ã®Characterãªãã¸ã§ã¯ãcharlie, liz, benãããã class Character < Struct.new(:name, :level, :point) def
ã¾ããã 2ã¤ããããããã¤ãããæ°è¦ã®ã¢ããªããã£ãã®ã§éç¨æ¹æ³ã®åè£ã« Docker ãæ¤è¨ãã æ¤è¨æ®µéã§æ¢ã«ããã¤ã課é¡ç¹ãè¦ãã Docker ã«èå³ãããããªäººãã¡ (@deeeet @repeatedly @kenjiskywalker @punytan) ã§å¯¿å¸ãã åèç»å pic.twitter.com/wGcPZw0bVp â ã¾(oãÏão)ãã''''ããããï¼ (@punytan) May 9, 2014 tl;dr ãããã¯ã·ã§ã³ã§ Docker 使ãã®ã¯ä»ã®ã¨ããäººæ± çãä¸ãã£ã¦ãæã¯ãããã©å®é使ã£ã¦ã人ããªã Docker ã¯å¨è¾ºã®ããã«ã¦ã§ã¢ãæããªãã¨ãªããªã使ãã«ãã 話é¡ãã¨ã«ç®æ¡æ¸ãã¡ã¢ éç¨ ã¢ããªã®ãã°ãå®å ¨ã«ååããæ¹æ³ã©ãããï¼ ãã¹ãã®ãã£ã¬ã¯ããªããã¦ã³ããã¦ããã«æ¸ãè¾¼ãï¼ ãã°ååããã£ã¦ããã³ã³ããæ¢ããå®å ¨ãªæ¹æ³ã¯ï¼ ã³ã³
ã¯ããã« ã¿ãªããã¯ã½ããã¯ã¬ã¼ãã³ã®è¥¿è¦å ¬å®(ã«ãã¿ã¾ãã²ã)ã¨ãã人ç©ããåç¥ã§ããããï¼ å½¼ã¯ã½ããã¯ã¬ã¼ãã³ã®é ¼ããããã°ã©ãã§ããªãããããã£ã¼ã«ã¢ã¤ã³ã³ã¯ãã¤ãããã³ãã©ã¤ãªã³ãã§ãã ãããªå½¼ã30æ³ã®ç®æ¨ã¨ãã¦ã365æ¥éæ¯æ¥ããã°ãä¸æ¬æ´æ°ãç¶ãããã¨ããæ²ãã¾ããã 30æ³ãè¿ãã¦ã次ã®èªçæ¥ãè¿ããã¾ã§æ¯æ¥1æ¬365æ¥éããã°ãæ´æ°ãç¶ãããã¨ã決ãã¾ãã | mah365 å½¼ã®ç®æ¨ãèããã¨ãã¯æ£ç´ããã¼ãã¾ãã§ï¼ãããªãç¡çãã£ã¦ã¼ï¼ãã¨æã£ãã®ã§ãããä»ã®ã¨ããå ¬ç´éãæ¯æ¥æ´æ°ãç¶ãã¦ãã¾ãã ã¡ãªã¿ã«æ¨æ¥æ´æ°ãããã®ã¯ããä¸éãMarvericksã«ã¢ããã°ã¬ã¼ããããã¨ããããã£ã¹ã¯ãç ´æãã¾ãããã¨ããã¨ã³ããªã§ããã(ã¡ããã¨ç´ã£ãããªï¼) é£ç¶æ´æ°ã®éå§ãã150æ¥ä»¥ä¸ã®æ¥æ°ãéããããã¾ã§ç¶ããããªããã¶ãæ¬æ°ã§å®èµ°ãç®æãã¦ãããã ã¨æãã¾ãã ã
転è·æ´»åãä¿®ç¾ å ´ã¨ãããçä¸å°½éãã¦å¿ãç ãã§ãã¾ã£ãã å ¨ã¦ã®æ±äººããå¿ é æ¡ä»¶ã¨ãã¦ãJavaã¾ãã¯PHPã§ã®éçºçµé¨ããããã¨ãã®æ±äººã§ã ã»ã¼åãæ±äººå 容ã«å¿åãã¦ãããã¨ã«ãªããæåºãã¦ããæ¸é¡ãåãã â æ¸é¡é¸èã§ä¸åæ ¼ã¨ãªã£ãä¼ç¤¾ ãã«ãã©æ ªå¼ä¼ç¤¾ æ ªå¼ä¼ç¤¾ãã¼ã·ãã¯ æ ªå¼ä¼ç¤¾ã¦ãããã¯ æ ªå¼ä¼ç¤¾ãããªã³ æ ªå¼ä¼ç¤¾ï½ï½ï½ï½ï½ããã¯ãµã¼ãã¹ æ ªå¼ä¼ç¤¾ãã³ãã㯠æ¥æ¬ã³ã³ãã¥ã¼ã¿ã·ã¹ãã æ ªå¼ä¼ç¤¾ ãã¼ã·ã¼ãã§ã¼ãºæ ªå¼ä¼ç¤¾ æ ªå¼ä¼ç¤¾ãªã¼ãã³ã¹ããªã¼ã æ ªå¼ä¼ç¤¾ãã¸ãã¹ãããã³ã¼ãã¬ã¼ã·ã§ã³ æ ªå¼ä¼ç¤¾ã¢ã¤ã»ã¨ã³ã¿ã¼ æ ªå¼ä¼ç¤¾ãã¸ãã¹ãããã³ã¼ãã¬ã¼ã·ã§ã³ æ ªå¼ä¼ç¤¾ã¢ã¤ã»ã¨ã³ã¿ã¼ ã¤ãããã£ãã³ã·ã£ã«æ ªå¼ä¼ç¤¾ æ ªå¼ä¼ç¤¾ãã¸ã¿ã«ãã§ã³ã¸ æ ªå¼ä¼ç¤¾ãªãºãã¸ã§ã³ æ ªå¼ä¼ç¤¾ï¼§ï½ï½ï½ æ ªå¼ä¼ç¤¾ãªã¢ã«ã¯ã¼ã«ã æ ªå¼ä¼ç¤¾ã¢ãã æ ªå¼ä¼ç¤¾ã¨ã¹ãªã³ã¯ æ ªå¼ä¼ç¤¾ï¼¡ï¼´ï¼§ï¼³ æ ªå¼ä¼ç¤¾ã¨ã¹ã¨ã¹ãµãã¼ã æ ªå¼ä¼ç¤¾ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}