Glide is the easiest way to create useful slide for all of your Gists.
- input key
<-to go backward. - input key
->to go forward.
| require 'spec_helper' | |
| describe Account do | |
| describe "#test" do | |
| let(:user_a) { "aaa" } | |
| let(:user_b) { "bbb" } | |
| #it { expect(user_a).to eq(user_b) } | |
| it { "aaa".should eq("bbb")} | |
| end | |
| end |
| require 'elasticsearch' | |
| require 'json' | |
| es = Elasticsearch::Client.new(hosts: "localhost:9200") | |
| message_id = ARGV[0] | |
| api_url = if message_id | |
| "https://idobata.io/api/messages?room_id=&older_than=#{message_id}" | |
| else | |
| "https://idobata.io/api/messages?room_id=" | |
| end | |
| messages = JSON.parse(`curl '#{api_url}' -H "X-API-Token: "`)['messages'] |
| require 'date' | |
| require 'i18n' | |
| JAVA = "http://www.java.com/#{I18n.locale}/" | |
| YOU = `whoami` | |
| def DOWNLOAD(today) | |
| puts "Free Java Download" | |
| puts JAVA |
| { | |
| [count: 11030, pizza_id: 6], | |
| [count: 6932, pizza_id: 1], | |
| [count: 6476, pizza_id: 7], | |
| [count: 5786, pizza_id: 9], | |
| [count: 4710, pizza_id: 2], | |
| [count: 2445, pizza_id: 5], | |
| [count: 2085, pizza_id: 3], | |
| [count: 2040, pizza_id: 8], | |
| [count: 1701, pizza_id: 10], |
used buff cach free
532M 92.6M 264M 108M
532M 92.6M 264M 108M
532M 92.6M 264M 108M
538M 94.2M 268M 95.0M
539M 94.2M 269M 93.3M
562M 95.4M 269M 69.1M
580M 95.9M 257M 62.4M
601M 92.1M 235M 67.5M
| $ -> | |
| tumblog = "gazo0141.tumblr.com" | |
| api_key ="GesVlVXWDOv1DKzVowf2jqsY8ndlgag0Uxy8HlLzN8AXAYd8FE" | |
| url = "http://api.tumblr.com/v2/blog/#{tumblog}/posts/photo?api_key=#{api_key}&jsonp=?" | |
| console.log url | |
| $.ajax | |
| url: url | |
| .done (data) -> | |
| return console.log "error" unless data.status == 200 | |
| class User < AR | |
| validates :b, precense: true, if: :a? | |
| def a? | |
| a.blank? | |
| end | |
| end |
| render json: { status: "foo", html: render_to_string("users/panel", locals: { message: "hello world" }) } | |
| render json: { status: "bar", html: (render_to_string "users/panel", locals: { message: "hello workd" }) } |
| %a{ class: "hoge", id: "piyo" "data-user-name" => "asonas" } | |
| %a( class="hoge" id="piyo" data-user-name="asonas" ) |