This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 基本。ここ見ておけばラテぐらいは頼める。 | |
| というかスタバで最初につまづくのはどうやらサイズっぽいので | |
| サイズだけ確認しておけば多分どうにでもある。 | |
| ビバレッジっていうのはつまり飲料ってことだ。 | |
| http://www.starbucks.co.jp/howto/store/order.html | |
| カスタマイズとか通ぶりたい人はここを見る。 | |
| http://store.starbucks.co.jp/customize/item.html#childTab01 | |
| タンブラーとかで持ち帰りしてみたい人はここを見る。 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # メソッド単位に describe で分割するパターン | |
| require 'spec_helper' | |
| module Codebreaker | |
| describe Marker do | |
| let(:secret) { '1234' } | |
| describe '#exact_match_count' do | |
| subject { Marker.new(secret, guess).exact_match_count } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require 'rspec' | |
| class Dummy | |
| attr_reader :arg | |
| def initialize(arg) | |
| @arg = arg | |
| end | |
| end | |
| describe 'raise' do | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class UserList < ActiveRecord::Base | |
| # user_id ログインしてる人 | |
| # facebook_user_id userlist.yamlのIDと同じ | |
| # name userlist.yamlのnameと同じ | |
| # enable userlist.yamlのenableと同じ | |
| end | |
| class MyUserList | |
| def initialize(id) | |
| @id = id | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require 'socket' | |
| class RubyIrcClient | |
| def initialize(server = 'irc.freenode.net', port = 6667) | |
| @server = server | |
| @port = port | |
| @socket= TCPSocket.new(@server, @port) | |
| end | |
| def login | |
| nick('ukstudio_test'). | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require 'coffee-script' | |
| mongoose = require 'mongoose' | |
| mongoose.connect 'mongodb://localhost/node' | |
| Schema = mongoose.Schema | |
| # schema定義 | |
| UserSchema = new Schema | |
| name : String | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | http = require 'http' | |
| http.createServer( (req, res) -> | |
| res.writeHead 200, {'Content-Type': 'text/plain; charset=utf-8'} | |
| res.end 'みてるー?\n' | |
| ).listen(8124, "127.0.0.1") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var http = require('http') | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain; charset=utf-8'}); | |
| res.end('みてるー?\n'); | |
| }).listen(8124, "127.0.0.1"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # coding: utf-8 | |
| class Fixnum | |
| def ほむ | |
| self.times { puts 'ほむ' } | |
| end | |
| end | |
| 10.ほむ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | hello = -> 'hello' |