I hereby claim:
- I am brynmathias on github.
- I am brynmathias (https://keybase.io/brynmathias) on keybase.
- I have a public key ASDpUdd_kj5AN7J-4uHkfJCPrTv1Irti__eO4GGkzhjCKQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| from MessageCorps.broker import kafka_consumer | |
| import logging | |
| logging.basicConfig(level=logging.DEBUG) | |
| def main(): |
| #!/usr/bin/env python3 | |
| from MessageCorps.broker import kafka_producer | |
| from protobuf.data.ImageData_pb2 import Image | |
| from time import sleep | |
| import logging | |
| logging.basicConfig(level=logging.DEBUG) | |
| def main(): |
| syntax = 'proto3'; | |
| package protobuf.data; | |
| import "protobuf/common/messageData.proto"; | |
| message Image { | |
| bytes image_data = 1; | |
| int32 height = 2; | |
| int32 width = 3; |
| // Meta-defines | |
| #pragma SPARK_NO_PREPROCESSOR | |
| // Includes - particle | |
| #include "spark-dallas-temperature/spark-dallas-temperature.h" | |
| #include "OneWire/OneWire.h" | |
| // Includes - Custom | |
| #include "RingBuffer.h" |
| version: "2" | |
| # Use this if you're testing/debugging the build locally on OSX | |
| services: | |
| web56: | |
| build: ./php5.6/ | |
| command: /init | |
| ports: | |
| - 80 | |
| volumes: | |
| - ./web:/var/www/project/web |
| @cherrypy.tools.json_in() | |
| @managed_session | |
| def POST(self, org=None, account_number=None, db_session=None): | |
| """Update user info""" | |
| accounts = db_session.query(UserData).filter(UserData.account_number == account_number).all() | |
| if len(accounts) > 1: | |
| org = db_session.query(Org).filster(Org.org_name == org).one() | |
| account = db_sessions.query(UserData).filter(UserData.account_number == account_number and | |
| UserData.org == org.id).one() | |
| elif len(accounts) == 1: |
| #!/usr/bin/env python | |
| import rados | |
| import time | |
| import random | |
| import threading | |
| import numpy | |
| import string | |
| import sys | |
| #!/bin/bash | |
| # ssh-multi | |
| # D.Kovalov | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
| # a script to ssh multiple servers over multiple tmux panes | |
| starttmux() { | |
| if [ -z "$HOSTS" ]; then |
| int led = D7; | |
| int state = LOW; | |
| bool go = false; | |
| int on_time = 500; | |
| int off_time = 500; | |
| int toggle_led(String args){ |