This file contains 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
[{"name":"speak","phrase":"Thanks for calling!"}, | |
{"name":"Sleep","duration":"5"}, | |
{"name":"GetDigits","max":"5","timeout":"2"}, | |
{"name":"DTMF","digits":"12345"}, | |
{"name":"dial","destination":"8476766615"}] |
This file contains 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
[{"name":"Speak","phrase":"Callie^Please leave a message at the tone"},{"name":"Record","filename":"sounds/testing.wav","maxduration":"60","url":"http://173.108.167.239/call","method":"post"},{"name":"OnHangup","url":"http://173.108.167.239/call","method":"post"}] |
This file contains 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
[ | |
{"name":"Dial","destination":"8635296493","timeout":"20","url":"https://gist.github.com/raw/670449/de9a11ec4b0c7da9deef8ae78f27fcc99ea9aeda/gistfile2.json",} | |
] |
This file contains 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
[ | |
{"name":"Playback","filename":"vm-theperson"}, | |
{"name":"Playback","filename":"vm-isunavail"}, | |
{"name":"Playback","filename":"vm-leavemsg"}, | |
{"name":"Playback","filename":"beep"}, | |
{"name":"Record","filename":"sounds/voicemail_test.wav","maxduration":"300"} | |
] |
This file contains 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
[ | |
{"name":"Dial","destination":"8635296493","timeout":"20","url":"https://gist.github.com/raw/670972/6acda495379b193a3cbe2ea791287974331f1696/gistfile1.json"} | |
] |
This file contains 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
[{"name":"Playback","filename":"vm-theperson"}] |
This file contains 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
[{"name":"speak","phrase":"Thanks for calling!"}, | |
{"name":"playback","filename":"monkeys"}] |
This file contains 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 'rubygems' | |
require 'sinatra' | |
require 'lib/sms' | |
require 'thread' | |
queue = Queue.new | |
consumer = Thread.new do | |
while (true) do | |
message = queue.pop |
This file contains 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 'rubygems' | |
require 'sinatra' | |
require 'lib/sms' | |
require 'thread' | |
SECONDS_PER_MESSAGE = 1.0 | |
queue = Queue.new | |
consumer = Thread.new do |
This file contains 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
class Class | |
def initialize foo, bar | |
@foo = foo | |
@bar = bar | |
end | |
end | |
class SubClass < Class | |
def initialize foo, bar, awk | |
super foo, bar |