This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "slackbot" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait EventEmitter{ | |
val List = scala.collection.immutable.List | |
var eid = 0 | |
class Event(_id:Int, _name:String, _callback:(Any) => Unit, _once:Boolean){ | |
var name = _name | |
var callback = _callback | |
val id = _id | |
var once = _once |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ビーコン発信側 | |
Bleacon = require 'bleacon' | |
uuid = process.argv[2] || "805D6740-F575-492A-8668-45E553EB9DF2" | |
major = 1 | |
minor = 1 | |
console.log uuid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ | |
*#* | |
.DS_Store | |
node_modules | |
*.log | |
tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
puts "👀\n👃\n👄 < #{ ARGV.empty? ? ARGF.read : ARGV.join(' ') }" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## webページ内の単語をカウントする | |
require 'httparty' | |
require 'nokogiri' | |
require 'natto' | |
if ARGV.empty? | |
STDERR.puts "e.g. ruby #{$0} http://shokai.org/blog/" | |
exit 1 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
puts "👀\n👃\n👄 < #{ ARGV.empty? ? ARGF.read : ARGV.join(' ') }" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'archive/zip' | |
require 'htmlentities' | |
require 'nokogiri' | |
class Keynote | |
attr_reader :document, :pages | |
def initialize(filename) | |
@filename = filename |