Skip to content

Instantly share code, notes, and snippets.

View kazuhisa's full-sized avatar

Yamamoto Kazuhisa kazuhisa

View GitHub Profile
selectNode: (id, items)->
for i,item of items
item.selected = false
if item.id == id
item.selected = true
this.selectNode(id, item.children)
rh1039:composetest kazuhisa$ docker-compose up
Creating network "composetest_default" with the default driver
Building web
Step 1 : FROM python:3.4-alpine
3.4-alpine: Pulling from library/python
3690ec4760f9: Already exists
8cf4eb2be1b3: Pull complete
a196ebb46a8b: Pull complete
c72b1f1aa3a4: Pull complete
Digest: sha256:4a422a07aa1b6393c1ab2cf23ff79a5c16356016350019ebf8f1d31093329bab
@kazuhisa
kazuhisa / turbolinks.coffee
Created February 18, 2018 06:19
turbolinksの発火
aaa:
bbb: 123
@kazuhisa
kazuhisa / bench.rb
Created December 29, 2018 06:43
Benchmark
require 'csv'
require 'securerandom'
require 'benchmark'
writer = CSV.open('/tmp/out.csv', 'w')
Benchmark.bm 10 do |r|
r.report "ベンチマーク" do
1_000_000.times.each do
writer << [SecureRandom.hex(10), rand(1_000)]
end