Skip to content

Instantly share code, notes, and snippets.

Untitled Slide

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.

  • input key <- to go backward.
  • input key -> to go forward.

Publishing

{
[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],
require 'date'
require 'i18n'
JAVA = "http://www.java.com/#{I18n.locale}/"
YOU = `whoami`
def DOWNLOAD(today)
puts "Free Java Download"
puts JAVA
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 '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

イベントタイトル

KosenDJ-bu #1

日程

5/30(土) 15:00〜21:00

場所

  • sabaco
[ec2-user@ip-10-156-122-178 ~]$ ab -n 1000 -c 100 http://kosendj-bu.in/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking kosendj-bu.in (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
^
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -O2 -fno-tree-dce -fno-optimize-si
bling-calls -fPIC -c ossl_pkey_dh.c
gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -O2 -fno-tree-dce -fno-optimize-si
bling-calls -fPIC -c ossl_pkey_ec.c
ossl_pkey_ec.c: In function ‘ossl_ec_group_initialize’:
ossl_pkey_ec.c:761:24: warning: assignment makes pointer from integer without a cast [enabled by default]
method = EC_GF2m_simple_method();
^
ossl_pkey_ec.c:815:29: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
@asonas
asonas / a.js
Last active August 29, 2015 14:01
function fib(n) {
var a = 1, b = 0, p = 0, q = 1, c = n, tmp_1, tmp_2;
while (c > 0) {
if (c % 2 === 0) {
tmp_1 = p * p + q * q;
tmp_2 = (q + 2 * p) * q;
p = tmp_1;
q = tmp_2;
c = c / 2;
[7] pry(main)> Date.parse("2014-06-25")
=> Wed, 25 Jun 2014
[8] pry(main)> Date.parse("2014-06-25").next_month
=> Fri, 25 Jul 2014