I hereby claim:
- I am 140am on github.
- I am 140am (https://keybase.io/140am) on keybase.
- I have a public key ASCE_z-ykwDLn4q2e9zGPQYTWu1QxRqRFIHfidc29km9zwo
To claim this, I am signing this object:
FROM ubuntu:16.04 | |
MAINTAINER Manuel Kreutz <[email protected]> | |
RUN apt-get update && \ | |
apt-get install -y curl git software-properties-common build-essential && \ | |
apt-get clean | |
# install emacs 26 from ppa | |
RUN add-apt-repository ppa:kelleyk/emacs && \ |
I hereby claim:
To claim this, I am signing this object:
import logging | |
import json | |
import dateutil.parser | |
import pika | |
FORMAT = '%(asctime)-15s %(levelname)s: %(message)s' | |
logging.basicConfig( | |
format = FORMAT, | |
level = logging.DEBUG | |
) |
""" Simple IPC benchmark test | |
Test throughput of 512 KB messages sent between two python processes using: | |
- multiprocessing pipe | |
- zeroMQ PUSH/PULL | |
- zeroMQ DEALER/DEALER | |
Result: |
""" Python HTTP client implementations benchmark | |
# Bandwidth Throughput | |
INFO:__main__:TEST: pycurl | |
INFO:__main__:pycurl: Returned status in 17 ms | |
INFO:__main__:Completed read of 1527248057 bytes in 15410 ms at 756 Mbps | |
INFO:__main__:TEST: urllib2 | |
INFO:__main__:urllib2: Returned status in 18 ms |
""" Tumblr API Example - Python CLI | |
""" | |
import oauth2 | |
import urlparse | |
import pytumblr | |
REQUEST_TOKEN_URL = 'http://www.tumblr.com/oauth/request_token' | |
AUTHORIZATION_URL = 'http://www.tumblr.com/oauth/authorize' | |
ACCESS_TOKEN_URL = 'http://www.tumblr.com/oauth/access_token' |
$(document).bind('keydown', function(evt){ | |
var myStatechart = window.myStatechart, kid, | |
keyKey = {'38':'Up', '39': 'Right', '40':'Down', '37': 'Left', '13': 'Enter'}; | |
console.log('Which: ', evt.which); | |
kid = keyKey[evt.which]; | |
if (kid) myStatechart.sendEvent('key'+kid); | |
}); |
""" Example of how to get started with the `butler` library for RPC calls | |
Defines 3 example classes we want to expose for RPC use (ServiceA, ServiceB, ServiceC) | |
which all have a 'test' method. | |
Start a Router and register all the Service classes (`services_objects`) | |
python butler_service.py --service | |
Start only a Router process: |
class exports.AddTaskTemplateView extends Backbone.View | |
events: | |
"change input": "fieldChanged" | |
"change select": "fieldChanged" | |
'click #btn-submit' : 'submitInput' | |
render: (context = {}) -> | |
$(@el).html require('./templates/user_create') context | |
this |