This file contains 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
#!/usr/bin/env python2.7 | |
# | |
# PGP Key Extractor -- A (partial) Python implementation of OpenPGP | |
# | |
# Copyright 2011 Trevor Bentley | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
This file contains 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
import threading | |
import pyttsx | |
import objc | |
from Foundation import * | |
from PyObjCTools import AppHelper | |
import gobject | |
shouldUseThreads = True | |
if shouldUseThreads: |
This file contains 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
import multiprocessing | |
import objc | |
from Foundation import * | |
class Test: | |
def __init__(self): | |
self.proc = multiprocessing.Process(target=self.run) | |
def start(self): | |
self.proc.start() | |
def run(self): |
This file contains 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
all: default run | |
default: | |
msp430-gcc -I/usr/local/msp430-gcc-4.4.3/msp430/include/ captouch.c -save-temps -mendup-at=main -mmcu=msp430x2111 -Os | |
run: | |
mspdebug rf2500 "prog a.out" | |
dump: | |
mspdebug rf2500 "md 0x1000 256" |
This file contains 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
all: default run | |
default: | |
msp430-gcc -I/usr/local/msp430-gcc-4.4.3//msp430/include/ ldpump_tester.c -save-temps -mendup-at=main -mmcu=msp430x2111 -Os | |
run: | |
mspdebug rf2500 "prog a.out" | |
dump: | |
mspdebug rf2500 "md 0x1000 256" |
This file contains 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
all: default run | |
default: | |
msp430-gcc -I/usr/local/msp430-gcc-4.4.3/msp430/include/ captouch.c -save-temps -mendup-at=main -mmcu=msp430x2111 -Os | |
run: | |
mspdebug rf2500 "prog a.out" | |
dump: | |
mspdebug rf2500 "md 0x1000 256" |
This file contains 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
(ns com.trevorbentley.cancelMessages | |
(:require [http.async.client :as client] | |
[cheshire.core :as cheshire])) | |
(def host (if (> (count *command-line-args*) 0) | |
(first *command-line-args*) | |
"localhost")) | |
(def cancelUrl (str "http://" host ":9090/cancelMessage")) | |
(def activeUrl (str "http://" host ":9090/activeMessages")) |
This file contains 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
import urllib2 | |
from xml.etree.ElementTree import XMLParser | |
import numpy | |
class DepthCounter: | |
depthdict = {} | |
def __init__(self): | |
self.classdepth = 0 | |
self.depth = 0 | |
self.depthdict = {} |
This file contains 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
import sys | |
import os | |
import numpy | |
import random | |
import string | |
import matplotlib.pyplot as plt | |
#data = numpy.random.bytes(10000000) | |
data = [random.choice(string.printable) for x in xrange(1000000)] | |
#data = numpy.random.bytes(100) |
This file contains 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
#!/usr/bin/env python | |
import string | |
import random | |
import sys | |
import pickle | |
f = open("employee_review_corpus.txt", "r") | |
contents = f.read() | |
f.close() |
OlderNewer