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
find . -regex ".*-v[a-f0-9][a-f0-9][a-f0-9].*" |
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
diff --git a/lib/boot.js b/lib/boot.js | |
index 9ad4076..66cc56c 100644 | |
--- a/lib/boot.js | |
+++ b/lib/boot.js | |
@@ -27,6 +27,9 @@ requirejs.config({ | |
'vendor/crypto': { | |
exports: 'CryptoJS' | |
}, | |
+ 'vendor/videojs/video': { | |
+ exports: '_V_' |
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
#assuming there is os.path import dirname, join | |
def Tcl_AppInit(app): | |
+ lib_path = join(dirname(dirname(dirname(__file__))), 'lib') | |
+ tcl_path = join(lib_path, 'tcl') | |
+ tk_path = join(lib_path, 'tk') | |
+ tklib.Tcl_Eval(app.interp, 'set tcl_library "{0}"'.format(tcl_path)) | |
+ tklib.Tcl_Eval(app.interp, 'set tk_library "{0}"'.format(tk_path)) | |
+ |
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
Directive | |
app.directive \component, [\$injector \$compile \$q (injector, compile, q) -> | |
deferred = q.defer! | |
promise = deferred.promise | |
scope: {} | |
restrict: 'A' | |
compile: (element, attrs) -> | |
require [attrs.component] (component) -> |
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
from __future__ import print_function | |
import signal | |
import gevent | |
import zmq.green as zmq | |
import psycopg2 | |
from psycogreen.gevent import patch_psycopg | |
patch_psycopg() |
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
from __future__ import print_function | |
import signal | |
import gevent | |
import zmq.green as zmq | |
import psycopg2 | |
from psycogreen.gevent import patch_psycopg | |
from gevent import pywsgi | |
from gevent.monkey import patch_all |
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
# gunicorn -k "geventwebsocket.gunicorn.workers.GeventWebSocketWorker" -w 4 server:handle_request | |
import gevent | |
from gevent.monkey import patch_all | |
from pprint import pprint | |
from StringIO import StringIO | |
patch_all() |
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
# uwsgi --module uwsgiws --callable application --master --http :8080 --http-websockets --gevent 100 | |
# this works | |
import uwsgi | |
from gevent.monkey import patch_all | |
patch_all() |
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
# consumer | |
from __future__ import print_function | |
import gevent | |
from gevent.monkey import patch_all | |
import psycogreen.gevent | |
import psycopg2 |
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
from array import array | |
LOOP = 10000 | |
a = array('B') | |
b = array('B') | |
c = array('H') | |
with open('/dev/urandom') as f: |
OlderNewer