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
//#define ?? auto | |
#define cease break | |
#define upon case | |
//#define ?? char | |
#define steadfast const | |
#define abide continue | |
//#define ?? default | |
#define undertake do | |
//#define ?? double | |
#define otherwise else |
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
package ircdA.dAmn.util | |
import ircdA.dAmn.Packet._ | |
import scala.util.parsing.combinator.RegexParsers | |
object PacketParser extends PacketParser | |
class PacketParser extends RegexParsers { | |
override def skipWhitespace = false | |
def identifier = """(\p{Alnum}+)""".r |
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
currentcalls = {"provider"=>"Internal", "start_time"=>"2011-07-25 16:29:29", "duration"=>"60", "to_caller_id_number"=>"7003", "state"=>"leaving_voicemail", "from_caller_id_name"=>"CC Agent Station", "to_caller_id_name"=>"tttttt aaaaaaaaa", "format"=>"slin", "from_caller_id_number"=>"4100", "id"=>"Local/4100~1122@pre_process_call_api-cf84,1"} | |
{"provider"=>"Internal", "start_time"=>"2011-07-25 16:29:29", "duration"=>"60", "to_caller_id_number"=>"4100", "state"=>"leaving_voicemail", "from_caller_id_name"=>"CC Agent Station", "to_caller_id_name"=>"CC Agent Station", "format"=>"slin", "from_caller_id_number"=>"4100", "id"=>"Local/4100~1122@pre_process_call_api-cf84,2"} | |
current_calls do |a| | |
if | |
a["to_caller_id_number"] == "7003" | |
puts a["7003"].id | |
end | |
end |