Ruby
git ãã rbenv å°å ¥ $ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv .zshrcã®æ¸ãæã ãã¹ãéã $HOME/.rbenv/bin:ããã¹ã®å é ã«è¿½å rbenv initãã·ã§ã«èµ·åæã«å¼ã°ããããã« $ echo 'eval "$(rbenv init -)"' >> ~/.zshrc㧠.zshrcâ¦
1æèªã¿ï¼ã©ã³ãã æã¡ï¼ã®ãªãã¼ã·ãä½æ 1æèªã¿ï¼ã©ã³ãã æã¡ï¼ã®ãªãã¼ã·ãä½æããã®ã§ãã½ã¼ã¹ãä¸ãã¾ããGitHub - binagit/reversi_random githubã«ä¸ãããã©ãã½ã¼ã¹ãæ²è¼ githubã«ä¸ãã¦ãã¾ããããã¡ãã«ãã½ã¼ã¹ãè¼ãã¾ãã README [ããã°â¦
uninitialized constant MysqlCompat::MysqlResã§ãããã¾ãã£ãã®ã§ã¡ã¢ ç°å¢ã¯ä»¥ä¸ã®éãleopardã§ã # rails -v Rails 1.2.6ã¨ãããããªãã§railsã®ãã¼ã¸ã§ã³ãããªä½ãã®ï¼ã£ã¦ããã®ã¯ç½®ãã¦ããã¦ãã¨ãããããã®ãã¼ã¸ã§ã³ã ã§ã rake db:migrateâ¦
ã¯ãã㫠第38å Rubyã§Web API - bi_naã®æ¥è¨ã§ã¯ãtwitterã®Web APIã使ã£ã¦ã¿ããã ããã¯èªè¨¼ããããªãã§ä½¿ããAPIã§ãã£ããèªè¨¼è¦ããã®APIã¯ããã»ã©å¤ããªãã®ã§ãã¡ãã£ã¨ããã¢ããä½ãã®ãªãèªè¨¼ã¯é¿ãã¦éããªãããã ã ããã§ä»åã¯ãOAuthâ¦
Rubyã§Web APIã«ææ¦ Rubyã§Web APIã使ã£ã¦ã¿ããï¼ ããã°ããï¼ Net::HTTPã使ã£ã¦Web APIããããã½ã¼ã¹ require 'net/http'; Net::HTTP.version_1_2; ############################################################ # URLãå®ç¾©ãã #################â¦
é åã¨Range ç¹°ãè¿ã â»ãããã¯ã§æ°å¤ã使ãã¨ã 2.upto(8) do |i| print i end ããã㯠(2..8).each do |i| print i end ç¹°ãè¿ã â»ãããã¯ã§æ°å¤ã使ããªãã¨ã 5.times do print 'hoge' end ã¡ãªã¿ã«ããããã¯ã§å¼æ°ããããå ´å㯠0ããã®ã¤ã³ã¯ãªã¡â¦
Perlã¯å¼±ãåä»ãã ãã©Rubyã¯å¼·ãåä»ã 1 + "1" ã¯ææ³ã¨ã©ã¼ã 1 + "1".to_i ã§æ示çã«åå¤æããªãã¨ãããªãã æé»çã«åå¤æãããã®ã¯ã puts ã®ã¨ãã« to_s ãè£ã§å¼ã°ãã¦ãããã æ´æ°ã¨å°æ°ç¹ã®è¶³ãç®ã®ã¨ããªã©ãããã¿ããã ã ããå ¨é¨ãå ¨â¦