View flux-sample.coffee
# Dispatcher
Dispatcher = require('flux').Dispatcher
AppDispatcher = new Dispatcher
# Action
Actions = {
add: (post) ->
AppDispatcher.dispatch
type: 'add'
post: post
View gist:9264978

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
View catwork.css
#_logo {
background-image: url(http://pic.kksg.net/fFP.png);
height: 25px;
width: 133px;
}
#_logo img {
display: none;
}
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View script
#!/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"
View bq.md

BigQueryで論理削除&論理更新

スキーマ

name type
user_id INTEGER
name STRING
is_active BOOLEAN
created_at TIMESTAMP
View chatwork.css
#_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;
}
View gist:e8d1ab273268ac75a714

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
View cd && ls -la
.CFUserTextEncoding
.DS_Store
.Trash
.bash_history
.cache
.cups
.dropbox
.gem
.gitconfig -> /Users/kkosuge/dotfiles/.gitconfig
.gitignore -> /Users/kkosuge/dotfiles/.gitignore
View install-redhat-td-agent2-amazon-linux.sh
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