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
2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] Server Shut Down. | |
2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] Server Shut Down. | |
2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] Server Shut Down. | |
2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] Server Shut Down. | |
2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] Server Shut Down. | |
2012-03-13 19:39:14-0500 [-] 2012-03-13 19:39:14-0500 [-] 2012-0 |
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
# test.py | |
from twisted.application import internet, service | |
from twisted.python import log | |
from twisted.python.logfile import DailyLogFile | |
from twisted.internet.task import LoopingCall | |
import os |
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
static inline real_t NormalizeAngle(real_t rAngle) { | |
real_t a = std::fmod(rAngle, 2 * pd::math::PI); | |
if (IsGreaterOrEqual(a, pd::math::PI)) | |
a = -2 * pd::math::PI + a; | |
else if (IsLessOrEqual(a, -pd::math::PI)) | |
a = 2 * pd::math::PI + a; | |
return a; | |
} |
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
# fswatcher.py | |
# Watches a particular directory for files with corresponding .lock files | |
# | |
from twisted.internet import reactor | |
import os | |
class DirectoryWatcher(object): | |
def __init__(self, dirname, interval=1.0): | |
self.dirname = dirname |
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
void write_rtp(std::ostream& os, const char *rtp_data, int length) { | |
unsigned short len = htons((unsigned short)length); | |
os.write((char*)&len, sizeof(len)); | |
os.write(rtp_data, length); | |
} |
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
TxIVR do | |
say "Hello, good morning" | |
play "http://s3.amazon.com/verma/company.mp3" | |
dialog do | |
play "http://s3.amazon.com/verma/menu.mp3" | |
option key: "1", speech: "balance" do | |
say do | |
get "http://vendor.com/newcall/balance" |
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
var Bye, Greeting, Hello, | |
__hasProp = {}.hasOwnProperty, | |
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | |
Greeting = (function() { | |
function Greeting() {} | |
Greeting.prototype.initialize = function() { | |
return this.message = "Hello"; |
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": "elastic-queries", | |
"version": "0.0.1", | |
"description": "Elastic query tests", | |
"dependencies": { | |
"underscore": "1.4.2", | |
"elasticsearchclient": "*", | |
"express": "3.x", | |
"consolidate": "*", | |
"jade": "*" |
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
PREFACE. | |
In giving to the public this volume, it has been the | |
design to present the operations of the Bureau of the Nation- | |
al Detective Police during the war, so far as it is proper to | |
make them known to the people. It is not a book of roman- | |
tic adventures, but a narrative of fscts in tha secret history | |
of the conflict, and mainly an exposure of the manifold and | |
gigantic frauds and crimes of both the openly disloyal and | |
the professed friends of the Repubfio. Many reports are | |
introduced, some of which are lengthy, and portions of them |
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
SELECT SUM(IF(average_score>65,1,0)) AS above_threshold, COUNT(*) AS total FROM | |
( SELECT agent_id, AVG(score) AS average_score | |
FROM recordings | |
JOIN evaluations ON recordings.id = evaluations.recording_id | |
GROUP BY agent_id) AS T; |
OlderNewer