I hereby claim:
- I am masui on github.
- I am masui (https://keybase.io/masui) on keybase.
- I have a public key ASA40groz95nO2cW-i5mIW6RTTMWM1xh88GmTTrUAYPFego
To claim this, I am signing this object:
{ | |
"questions": [ | |
"犬をもらったのは?", | |
"鉄条網で怪我したのは?", | |
"日下部君の家は?", | |
"上田君の家は?", | |
"ミサホの家は?", | |
"祖父母の家は?", | |
"マサコの家は?", | |
"いっとき住んでたのは?", |
{ | |
"questions": [ | |
"背負い投げされたのは?", | |
"土管が積まれてたのは?", | |
"すぐ行方不明になるのは?", | |
"かるたで負けたのは?", | |
"犬に似てるのは?", | |
"腕相撲で勝ったのは?", | |
"梅干しの種を投げたのは?", | |
"大吉なのは?", |
{ | |
"answers": [ | |
"(回答例1)" | |
], | |
"questions": [ | |
"(問題例1)" | |
] | |
} |
{ | |
"answers": [ | |
"ボストン", | |
"ニューヨーク", | |
"フィラデルフィア", | |
"ワシントンDC", | |
"アトランタ", | |
"ニューオーリンズ", | |
"ピッツバーグ", | |
"ペンシルベニア", |
{ | |
"answers": [ | |
"北海道", | |
"青森", | |
"岩手", | |
"宮城", | |
"秋田", | |
"山形", | |
"福島", | |
"茨城", |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
# | |
require 'shellwords' | |
if ARGV.length == 0 | |
STDERR.puts "% gyazo query" | |
STDERR.puts "% gyazo -f uploadfile1 uploadfile2" | |
exit | |
end |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# | |
# 全画面Gyazoると同時にファイル情報/アプリ情報のメタデータをアップする | |
# | |
require 'net/http' | |
require 'json' | |
require 'digest/md5' |
#!/bin/sh | |
pushd /var/www/html/master.gyazo.com/current/; RAILS_ENV=staging bundle exec rails runner /home/nota/masui/register.rb $1 $2 $3; popd |
id = ARGV[0] | |
time = ARGV[1] | |
url = ARGV[2] | |
exit unless id && time && url | |
time = time.gsub(/_/,' ') | |
d = Image.find_by(image_id: id) | |
d.date = Time.zone.parse(time).utc | |
d.metadata = { 'url' => url } |