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: |
| """ 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' |
| """ 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 |
| TestApp = SC.Application.create( | |
| /** | |
| Invoked when route change has been detected | |
| */ | |
| routeDidChange: function(params) { | |
| if (!params.target) return NO; | |
| params = SC.clone(params); |
| import pdb | |
| import time | |
| import threading | |
| class Event(object): | |
| pass | |
| class Observable(object): | |
| def __init__(self): | |
| self.callbacks = [] |