Skip to content

Instantly share code, notes, and snippets.

View kkosuge's full-sized avatar
🐇
busy

Kosuge Kazuya kkosuge

🐇
busy
View GitHub Profile
# Dispatcher
Dispatcher = require('flux').Dispatcher
AppDispatcher = new Dispatcher
# Action
Actions = {
add: (post) ->
AppDispatcher.dispatch
type: 'add'
post: post

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for Google TV

Consumer key: iAtYJ4HpUVfIUoNnif1DA

#_logo {
background-image: url(http://pic.kksg.net/fFP.png);
height: 25px;
width: 133px;
}
#_logo img {
display: none;
}
@kkosuge
kkosuge / 0_reuse_code.js
Created March 20, 2014 05:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/usr/bin/env ruby
require 'net/http'
require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
config.consumer_secret = "YOUR_CONSUMER_SECRET"
config.access_token = "YOUR_ACCESS_TOKEN"
config.access_token_secret = "YOUR_ACCESS_SECRET"
@kkosuge
kkosuge / bq.md
Last active August 29, 2015 14:03

BigQueryで論理削除&論理更新

スキーマ

name type
user_id INTEGER
name STRING
is_active BOOLEAN
created_at TIMESTAMP
#_logo {
background-image: url(https://slack.global.ssl.fastly.net/22317/img/landing_slack_logo_white.png);
background-size: contain;
background-repeat: no-repeat;
height: 28px;
width: 88px;
}
#_logo img {
display: none;
}
@kkosuge
kkosuge / gist:e8d1ab273268ac75a714
Last active August 29, 2015 14:06
各地VPSのレスポンスタイム

curl で10回 time_total 測った平均値(東京から)

curl -kL http://xxx.xxx.xxx.xxx/ -o /dev/null -w "Status: %{http_code}\tTime: %{time_total}\t" 2> /dev/null

VULTR

Location total_time
Tokyo 0.013
.CFUserTextEncoding
.DS_Store
.Trash
.bash_history
.cache
.cups
.dropbox
.gem
.gitconfig -> /Users/kkosuge/dotfiles/.gitconfig
.gitignore -> /Users/kkosuge/dotfiles/.gitignore
echo "This script requires superuser access to install rpm packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
# add GPG key