- @mirakui
- 2M recipes
- 52M UB
- 1.6M Premium Service Users
- 1000 EC2
- 15,000 req/s
- 7 ops
| #!/usr/bin/env ruby | |
| # | |
| # Example usage | |
| # - Test only changed model files & specs from master | |
| # $ bundle exec rspec $(script/changed-specs model master) | |
| # | |
| require "open3" | |
| require "shellwords" |
| FROM ruby:2.2.0 | |
| RUN bundle config --global frozen 1 | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | |
| ADD Gemfile /usr/src/app/ | |
| ADD Gemfile.lock /usr/src/app/ | |
| RUN bundle install --without test development --system |
| tell application "iTunes" | |
| set trackLyrics to lyrics of current track | |
| return trackLyrics | |
| end tell |
| #!/bin/bash | |
| base_dir=`pwd` | |
| wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz | |
| tar zxfv mecab-0.996.tar.gz | |
| cd mecab-0.996 | |
| ./configure --enable-utf8-only | |
| make | |
| make check |
| #!/usr/bin/env ruby | |
| require "RMagick" | |
| list = [] | |
| 10.times do |i| | |
| list << "lena_#{i}.png" | |
| end |
| require "spec_helper" | |
| module Sample | |
| describe Spec do | |
| it "should return JSON without id" do | |
| task = described_class.new(id, params) | |
| end | |
| end | |
| end |
| #!/usr/bin/env ruby | |
| require "json" | |
| require "open-uri" | |
| URL = "https://api.github.com/users/dtan4/repos" | |
| json = open(URL).read | |
| repositories = JSON.parse(json, symbolize_names: true) |