Skip to content

Instantly share code, notes, and snippets.

View moosan63's full-sized avatar

Ryo Murakami moosan63

View GitHub Profile
@moosan63
moosan63 / word_count
Created October 30, 2012 23:43
word counting program written by ruby
words = 0
open (ARGV[0]) do |file|
while l = file.gets
l = l.chomp
puts l
words += l.size
end
end
puts "\n"+words.to_s + "words"
@moosan63
moosan63 / gist:6577999
Created September 16, 2013 08:31
gem houstonのpush試作
require 'houston'
content_type :json, :charset => 'utf-8'
APN = Houston::Client.development
APN.certificate = File.read("./your/cert-file/path")
token = "<device-token>"
notification = Houston::Notification.new(device: token)
notification.alert = "Hello, World!"
notification.badge = 57
notification.sound = "sosumi.aiff"
notification.content_available = true
@moosan63
moosan63 / my brewfile
Last active August 29, 2015 13:56
My Brewfile
update
upgrade
#brew-cask
tap phinze/homebrew-cask || true
install brew-cask
###設定
#tools