Primer is a set of guidelines, principles, and patterns for designing and building UI at GitHub. It provides a shared language and standardized approach to delivering cohesive experiences.
æè¿ã®ããã°ã©ãã³ã°è¨èªã¯ããã±ã¼ã¸ç®¡çã·ã¹ãã ãæã£ã¦ãããã¨ãã»ã¨ãã©ã§ããPerlã«ã¯CPAN1ãããã¾ãããPythonã«ã¯PyPi2ãããã¾ãããRubyã«ã¯RubyGems3ãããã¾ãããNode.jsã«ã¯npm4ãããã¾ããããã±ã¼ã¸ç®¡çã·ã¹ãã ãããã¨ç°¡åã«ã©ã¤ãã©ãªããã¼ã«ãã¤ã³ã¹ãã¼ã«ã§ããã®ã§ãæå ã«ããããã®ã³ã¼ããéã¾ãã¾ãããããªæå ã®ã³ã¼ããç°¡åã«æ¤ç´¢ã§ããããã«ããæ¹æ³ãç´¹ä»ãã¾ãããã ããããã§ç´¹ä»ããã®ã¯RubyGemsã§ã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ã®ã³ã¼ããç°¡åã«æ¤ç´¢ã§ããããã«ããæ¹æ³ã ãã§ããä»ã®ããã±ã¼ã¸ç®¡çã·ã¹ãã ã«ã¤ãã¦ã¯è§¦ãã¾ããã ã©ã¤ãã©ãªã使ã£ã¦ãã¦ãæå¾ ããåä½ãããªãã¨ãã¯ã©ããã¾ããï¼ã¾ããããã¥ã¡ã³ãã確èªãããã¨ã§ããããããã¥ã¡ã³ããèªãã§ã解決ããªãã¨ãã¯Webã§æ¤ç´¢ããããå®éã«ã³ã¼ããèªãã§ã¿ããã¨ã§ããããããã§ç´¹ä»
A Better Way to Monitor God is an easy to configure, easy to extend monitoring framework written in Ruby. Keeping your server processes and tasks running should be a simple part of your deployment process. God aims to be the simplest, most powerful monitoring application available. Tom Preston-Werner [email protected] Google Group: http://groups.google.com/group/god-rb Features Config file is writte
Overview API Support Tutorials Changelog About Installing Nokogiri¶ Welcome! We've worked hard to make Nokogiri easy and reliable to install. This page should hopefully get you on your way quickly. Meta¶ The current version of this page focuses on the installation experience for Nokogiri v1.11 and later. If you're trying to install an earlier version, please visit: Nokogiri v1.10.x installation in
å¼ç¤¾ã§(ç·åãä¸ãã¦)ã¡ã³ããã³ã¹ãã¦ããtappã¨ããã©ã¤ãã©ãªãããã®ã§ãããæã£ãããèªç¥åº¦ãä½ããããªã®ã§ããã§ç´¹ä»ããã¦ããã ãã¾ãã ã¾ã¨ã tappã¯ãå¾æ¥ã®Print Debugã®åé¡ç¹ã解決ããç»æçãªã©ã¤ãã©ãªã§ãã 次ã®ãããªçµé¨ãããæ¹ã¯ããã¾ããGemfileã«tappã追å ãããã¨ããå§ããã¾ãã ã¡ã½ãããã§ã¼ã³ã®éã®ãªãã¸ã§ã¯ãã®ç¶æ ãè¦ãããã ãã«ä¸æå¤æ°ã使ã£ããã¨ããã ppãpãputsãæ¶ãå¿ãã¦ãªãã¸ããªã«ã³ããããã¦ãã¾ã£ã tappã¨ã¯ tappã¯ãPrint Debugãç°¡åã«è¡ãããã®Rubyã©ã¤ãã©ãªã§ãã ãªãã¸ããªã¯https://github.com/esminc/tappã«ãªãã¾ãã tappã®æ´å² tappã®ä½è ã§ãã@ursmã¯ã2008ã2009å¹´é ã«ç¤¾å åãã®ã¢ã³ãã¼ãããã¨ãã¦tappãçã¿ã ããRailsåå¼·ä¼41.
Ruby ã® eachãeach_with_objectãinjectãmap ã¯ä½¿ãã©ãããå¾®å¦ã«éãã ããããé©åãªç¶æ³ã§ä½¿ãåããããã°ãã³ã¼ãã¯ããåããããããªãã ã©ããªç¶æ³ã§ã each ã§æ¸ããã¨ã¯ã§ãããã ãããeach ã ã使ãããªããã°ããã¨ããèãæ¹ã¯ããç¹ã§æ£ããããã®ãããªèãæ¹ã®äººã«ã¨ã£ã¦ã¯each ã§æ¸ãã®ããã£ã¨ãåãããããã³ã¼ãã«ãªãã ããã ãããæ £ãã¦ã¿ãã¨ä¸è¨ã®ã¡ã½ããã使ãåããããæ¹ãç°¡æ½ã§åãããããã³ã¼ãã«ãªãããã®çç±ã¯ã¡ãã»ã¼ã¸æ§ã®éãã ã each ã§ãã¹ã¦ãæ¸ãå ´åã¯ä½è¨ãªã³ã¼ããæ¸ãå¿ è¦ãããããã®åãã©ããã¦ããæ¬è³ªçãªã³ã¼ããåããã¦ãã¾ããä½åãªã³ã¼ãããªãã»ã©ãæ¬è³ªçãªã³ã¼ããéç«ã¤ãã¡ãã»ã¼ã¸ãä¼ããããããªããæå³ãããã³ã¼ãã®æ¯çãä¸ãããã¨ã¯ãä¸ç´ããã°ã©ãã¸ã®éãéãéµã ã ããã§ã¯æ¬é¡ã«å ¥ããã ã¾ãã¯ç°¡å
å¹³ç´ ããQAï¼ ITããå©ç¨ããã ããèª ã«ãããã¨ããããã¾ãã QAï¼ ITã¯ã質åãåçããå ±æãããç·¨éããã¦ãããã¨ã§ãã¹ããªQAãèç©ã§ãããITã¨ã³ã¸ãã¢ã®ããã®åé¡è§£æ±ºã³ãã¥ããã£ã¼ãã¨ãã¦ç´7å¹´ééå¶ããã¦ãã¾ãããããã¾ã§ãµã¼ãã¹ãç¶ãããã¨ãã§ããã®ã¯ãQAï¼ ITã®ã³ã³ã»ããã«å ±æãããã ããé©åãªè³ªåãåçããå¯ãããã ããçãã¾ã®ãæ¯æ´ããã£ãããããã¨èãã¦ããã¾ããéãã¦å¾¡ç¤¼ç³ãä¸ãã¾ãã ããããªãããã¨ã³ã¸ãã¢ã®æ å ±å ¥ææ¹æ³ã®å¤æ§åãQAãµã¼ãã¹å¸å ´ã®ç¶æ³ãï¼ ITã®ä»å¾ã®ã¡ãã£ã¢éå¶æ¹éãªã©ãæ¤è¨ããçµæã2020å¹´2æ28æ¥ï¼éï¼15:00ããã¡ã¾ãã¦QAï¼ ITã®ãµã¼ãã¹ãçµäºãããã¨ã«ãã¾ããã ããã¾ã§ãå©ç¨ãããã ãã¾ããçãã¾ã«ã¯æ®å¿µãªãç¥ããã¨ãªããèª ã«å¿è¦ããæã£ã¦ããã¾ããä½ã¨ãããç解ãããã ãã¾ãã¨å¹¸ãã§ãã QAï¼ ITã®7å¹´éã§çãã¾ã®ç¥è
$ ruby method_added.rb added method is: #<UnboundMethod: Foo#x> defined in: Foo has 0 argument(s) added method is: #<UnboundMethod: Foo#y> defined in: Foo has 3 argument(s) ã¡ãªã¿ã«ä½è«ã ãã UnboundMethod ã¯ãæ®éã«ä½¿ãããã«ã¯ããã®ã¡ã½ãããåãåºããã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãããã®åä¾ã®ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãã¾ãã¯ãã®ã¡ã½ãããåãåºããã¢ã¸ã¥ã¼ã«ãã¤ã³ã¯ã«ã¼ãããã¤ã³ã¹ã¿ã³ã¹ããªã©ã¨ã«ãã ancestors ã«ãã®ã¡ã½ãããå®ç¾©ããã¯ã©ã¹/ã¢ã¸ã¥ã¼ã«ãããªããã° å bind ã§ããªãã®ã§ãçµæ§ä½¿ãã§ãæªãããã®è¨äºã§è¨ããã¢ããã¤ã¹ãã®ä»ã¯ãå§è²ã®å®ç¾ããããâ¦â¦ã è¨äºã«ãããã㪠before
$ rails c >> Story.last.previous => #<Story id: 1, title: "ãã³ãã©ï¼ç¦åï¼", body: "ç§ã®æ é·ã«ä¼ãã£ã¦ãããç¦åãã¨ãããã®ã«ã¾ã¤ãã話ã§ãã\nã©ãèªãã®ãã¯æå¾ã¾ã§ãããã¾ããã§ããã...", view: 0, user_id: 1, created_at: "2011-11-25 08:48:33", updated_at: "2011-11-25 08:48:33", comments_count: 0, scares_count: 0> ãã°å ±åãããµã¨ActiveRecordã§ä½¿ããpreviousã¡ã½ããã£ã¦ã©ããããã¦ããã ããï¼ã¨æã£ã¦gemsãgrepãã¦ã¿ããè¦å½ãããã â(´ã¼ï½)âãããã ããã¡ã¿ããã°ã©ãã³ã°ã£ã¦ãã¤ã¯ã»ã»ã»ã. ãªãã§ãã¨ï¼ãããå ´æãæ¢ãå½ã¦ã¦ããï¼ >> Story.
ããã«ã®ãããã絶æçã«é ãã¦ãã¯ã¦ãª(ã°ã«ã¼ã)ã«Logãæ¸ãã¨ãã«é常ã«ã¹ãã¬ã¹ãã«ãªãããªã®ã§ãã¦ãã©ãã«ãããªãã¨æ»ã¬ãåãä¼¼ããããªæãã§ããã¼ã«ã«ã¯ã¦ãªãã¤ã¢ãªã¼ã£ã½ããã¨ããã£ã¦ãã ããæ¤ç´¢ã¨ããããªãã®ã§ãã¨ã«ãããã¬ãã¥ã¼ã ããããããããããã¨ãããã¨ã§ãã£ã¨ãæ軽ãªæãã§ãããããåã¯text-hatenaã¨ããRubyã®ã¯ã¦ãªè¨æ³ã®ãã¼ã¶ã¼ã使ã£ã¦ããããä»åã¯hparserã¨ãããã¤ã代ããã«ä½¿ã£ã¦ã¿ããã§ã以ä¸ã®ã³ã¼ãã~/bin/txt2hatenaã¨ããæãã§ä¿åãã¦å®è¡æ¨©éãä»ä¸(chmod +x)ã #!/opt/local/bin/ruby1.9 # -*- coding: utf-8 -*- require 'hparser' puts HParser::Parser.new.parse(STDIN.read).map {|e| e.to_html
Rubyã§ã¡ã½ãããã§ã¼ã³ã®éä¸çµéãè¦ãè¦ãã«ã¯ Kernel#tapã便å©ã ãã (1..10).tap{ |x| puts x.inspect } .to_a.tap{ |x| puts x.inspect } .select { |x| x % 2 == 0 }.tap{ |x| puts x.inspect } .map { |x| x * x }.tap{ |x| puts x.inspect } # >> 1..10 # >> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] # >> [2, 4, 6, 8, 10] # >> [4, 16, 36, 64, 100] tapã®ãããã¯ã«ã¯ãã¡ãããããããªæç¶ãæ¸ãããã© ãã£ã±ãåºåç³»ã¡ã½ããããã使ãããã¨æããã ãããªããã£ãã®ã㨠ãããã®ã¡ã½ãããselfãè¿ãããã«ã㦠ãããå¼æ°ãåããªãã¨ã
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
ãããã°ãããRails 3.x ãã¼ã¹ã§ç°¡åãªéçºããã¦ãã¾ãã ã©ãããããªããæ°ãããã¨ãããªãã¨ãã¨ãããã¨ã§ãä»å㯠Behavior Driven éçºããããã¨ãã¦ã¾ãããCucumberã§ã®ãæ¯ãèããã¼ã¹ã®è¦æ±ä»æ§çå®ãããRSpecãç¨ãã Test Driven ãªéçºã¸ã¨è½ã¨ãè¾¼ãã§è¡ãæ¹æ³ã§ããThe RSpec BookãããContinuous Testing: with Ruby, Rails, and JavaScriptãèªã¿ã¤ã¤ãè²ã ã¨å®é¨ãã¦ã¾ããã ãããªããã§ãããã¤ãTipsãªã©ã¾ã¨ãããã¨æã£ã¦ããã®ã§ãããã¨ãããããå½¹ã«ç«ã¡ãããªãã¨ãå ã«æ¸ãã¿ããã¨ãããã¨ã§ãåç½®ããé·ããªãã¾ããããcapybara-webkitã«ã¤ãã¦ã RSpecã¯ã ãããã°ã©ã ã®æ¯è (behaviour)ããè¨è¿°ããããã®ãã¡ã¤ã³ç¹åè¨èª (DomainS
_ Rubyã§GMailã使ã£ã¦ã¡ã¼ã«ãéä¿¡ãã (2) - Ruby 1.9.2 + charset='utf-8' & charset='iso-2022-jp' ããã ãã§ããã ã©ãªãã ruby1.9ç°å¢ã§ charset="iso-2022-jp"ãªã¡ã¼ã«ãæ±ãæ¹æ³ãæãã¦ãã ããorz ã¨æã£ã¦ããã æ¬æããµãã¸ã§ã¯ãã« "UTF-8ãªæåå".tojis.force_encoding('binary') ã使ã£ã¦ãcharset = 'iso-2022-jp'ãæå®ããããã¾ããã¨ããã¾ããã
https://github.com/r7kamura/streamer æ¦è¦ ã¹ããªã¼ã ã£ã½ããã®å ¨è¬ãä½ã§ãTerminalã§æµãããã¨ããCUIã¢ããªã§ãã jugyoããã®ä½ãããTwitterã¯ã©ã¤ã¢ã³ãEarthquake.gemãæ¹é ãã¦ã¤ããã¾ããã ã¹ããªã¼ã ã£ã½ããã®ã®ä¾ã¨ãã¦ã¯ãtwitterãã2chããã½ã¼ã·ã£ã«ããã¯ãã¼ã¯ã å種ãã°ãIRCãEmailãRSSãªã©ãæ³å®ãã¦ãã¾ãã ã¹ã¯ãªã¼ã³ã·ã§ãã ã¤ã³ã¹ãã¼ã« Ruby 1.9以ä¸ãå©ç¨ãã¦ä¸ããã rvmãå©ç¨ãã¦ããæ¹ã¯æ¥æ¬èªè¡¨ç¤ºã®çºã«readlineãªãã·ã§ã³ãæå¹åãã¦rubyãå ¥ããå¿ è¦ãããã¾ãã Gemã§ã¯æä¾ãã¦ããªãã®ã§é©å½ãªãã£ã¬ã¯ããªã«ç½®ãã¦èµ·åãã¦ãã ããã $ git clone git://github.com/r7kamura/streamer.git $ cd stream
å æ¥ã37signalsãã "pow" ã¨ãããããã¯ããçºè¡¨ããã¾ãããRailsã®éçºãããç°¡åã«è¡ãããã®éçºç¨HTTPãµã¼ãã§ããMaxOSåãã«ãã¥ã¼ãã³ã°ããã¦ãã¦ãzero configã§ã»ããã¢ããã§ããã®ãç¹å¾´ã«ãªã£ã¦ãã¾ãã 使ãæ¹ã¯é常ã«ç°¡åã§ã curl get.pow.cx | sh ã§ã¤ã³ã¹ãã¼ã«ãè¡ã£ã¦ cd ~/.pow ln -s /path/to/myapp ã¨ããããã«ã¢ããªã®ã·ã³ããªãã¯ãªã³ã¯ã ~/.pow ã®ãã£ã¬ã¯ããªã«è²¼ãã° http://myapp.dev/ ã¨ãããã¹ãåã§èµ·åãã¾ããæ¬å½ã« zero config ã§åãã¾ãã37signalsã®ãããã¯ãã¯ããããã§ããã ããã«ãé¢ç½ãã®ãRailsã®éçºç¨ã¢ããªã±ã¼ã·ã§ã³ãµã¼ããªã®ã§ãããä¸èº«ã®å®è£ 㯠node.js ã§æ¸ããã¦ãã¾ãã注ç®ãéãã¦ãã¦ãããµã¼ããµã¤ãJavaSc
RSpec ã®æ¸ãæ¹ã«ã¤ã㦠è¦ç´:RSpec ã¯åãªããã¹ããè±èªã£ã½ãæ¸ãããã¼ã«ã§ã¯ãªãéçºã®å ¨ããã»ã¹ãå éãããã¼ã«ã§ããã®ã§ããã¸ã§ã¯ãåæããæå¹ã«å©ç¨ããå¿ è¦ãããã 4/1 ã§ããæ°ã«ããçé¢ç®ãªè©±ãæ¸ãã¾ãã RSpec ã¯å¤å Ruby çéã§ä¸çªä½¿ããã¦ãããã¹ããã¬ã¼ã ã¯ã¼ã¯ã®ä¸ã¤ã ã¨æãã¾ããã§ããã®ã§ä½¿ãæ¹ã®è§£èª¬ãæ¦å¿µã®è§£èª¬å¤ãã§ãããå人çã«ã¯ãããã®è§£èª¬ã¯çãå¤ãããã®ãå¤ãã¨èãã¦ãã¾ãã RSpec ã®çé«ãä¼å¾ããã«ã¯ã RSpec ã® spec ãã©ã®ããã«æ¸ããã¨ãããã¨ãèãã¦ããå¿ è¦ãããã¨æãã¾ãã ã¾ã RSpec ã®ç¹å¾´çãªç¹ã¨ã¯ãªãã§ããããã RSpec ã§ãã¹ãã¯ä»¥ä¸ã®ããã«æ¸ããã¾ãã describe "èé" do context "æ便ããæ" do it "é«éã«æ便ãããã¨èéãããããã" do èéããããããã¨ã
GitHubã®defunktãä½ã£ãCIãµã¼ã cijoeã¯ãã¨ã¦ãç°¡åã«ä½¿ããã®ã§å°ããªããã¸ã§ã¯ãã§ã¯ããããï¼Jenkinsã®ãããªå å®æ©è½ã¯ããã¾ããï¼ã ãããã«ãå··ã§è©±é¡ã®amatsuda/kaminariã®ãã¹ããcijoeã§å®è¡ãã¦ã¿ã¾ãããã ã¾ãã¯cijoeãã¤ã³ã¹ãã¼ã«ã $ gem install cijoe æå ã®SnowLeopard + Ruby 1.9.2ã ã¨kaminariã®bundle installä¸ã«linecacheã®ã¤ã³ã¹ãã¼ã«ã§ã³ã±ã¦ãã¾ãã®ã§ã1.8.7ã使ãã¾ãã $ ruby -v ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10.5.0] ã¾ãããã«ã対象ã®ãªãã¸ããªããã¼ã«ã«ã«æã£ã¦ãã¦ãrake specãæåããã¨ããã¾ã§ç¢ºèªãã¾ãã $ git clone https:/
Rubyå ¬å¼ããã¥ã¡ã³ãã® trap::ã¹ã³ã¼ããå¶å¾¡æ§é ããã ã»ãã¼ã«ã«å¤æ°ã¯æ¬å½ã«ãã¼ã«ã«ãPerl ã® my ã¨ãã¨ã¯éã # Ruby local = "hoge" def hoge print local, "\n" # æªå®ç¾©ãã¨ã©ã¼ end hoge # Perl my $local = "hoge"; sub hoge { print $local, "\n"; #=> hoge } hoge; ãã®é ç®ãæ¸ãã人㯠my ... ã ãã¼ã«ã«å¤æ° 宣è¨ã ã¨æã£ããã ããã... my ... 㯠ã¬ãã·ã«ã«å¤æ° 宣è¨ã§ãã£ã¦ããã¼ã«ã«å¤æ°ãããªãã®ã«ã åæ²ã®ã³ã¼ãã«ããã¦ã¯ã $local ã®ã¹ã³ã¼ãã¯ç»å ´æããã³ã¼ãæ«å°¾ã¾ã§ã ä¾ãã°ã #!perl use strict; package hoge; my $local = 1; package main; pr
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}