I hereby claim:
- I am mattgorecki on github.
- I am abledanger (https://keybase.io/abledanger) on keybase.
- I have a public key ASBQpN5WxiNBYmdRY-TEBfCy860Q-tp8tirCNsl8sdBejAo
To claim this, I am signing this object:
# Detect mobile device. Set to mobile view if available | |
from mobile.sniffer.detect import detect_mobile_browser | |
if detect_mobile_browser(request.env.http_user_agent): | |
mobile_view = '%s.mobile.%s' % (request.function, request.extension) | |
if os.path.exists(os.path.join(request.folder, 'views',request.controller, mobile_view)): | |
response.view = '%s/%s' % (request.controller, mobile_view) |
#!/usr/bin/python | |
import SimpleCV | |
import time | |
import simplejson as json | |
import sys | |
if __name__ == "__main__": | |
captureDir = '/opt/display/applications/tldisplayclient/static' | |
ofilename = '%s/webcam-original.png' % captureDir | |
dfilename = '%s/webcam-detected.png' % captureDir |
import websocket | |
import thread | |
import time | |
import sys | |
from urllib import * | |
class SocketIO: | |
def __init__(self): | |
self.PORT = 5000 | |
self.HOSTNAME = '127.0.0.1' |
import string | |
import itertools | |
import random | |
def gen_pass(): | |
initial_consonants = (set(string.ascii_lowercase) - set('aeiou') | |
# remove those easily confused with others | |
- set('qxc') | |
# add some crunchy clusters | |
| set(['bl', 'br', 'cl', 'cr', 'dr', 'fl', |
require 'rubygems' | |
require 'snmp' | |
require 'carrot' | |
require 'json' | |
q = Carrot.queue('traps', :durable => true) | |
m = SNMP::TrapListener.new(:Port => 162, :Community => 'snmpcommunity') do |manager| | |
puts "trapd.rb started..." | |
manager.on_trap_default do |trap| |
#!/usr/bin/python2 | |
import serial | |
import re, sys, signal, os, time, datetime | |
import RPi.GPIO as GPIO | |
BITRATE = 9600 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(7, GPIO.OUT) | |
GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP) |
I hereby claim:
To claim this, I am signing this object: