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 | |
# Modules from the Python standard library. | |
import datetime, math, sys, os, logging, calendar, optparse, json, subprocess | |
# We use Pydap from http://pydap.org/. | |
import pydap.exceptions, pydap.client, pydap.lib | |
# Output logger format | |
log = logging.getLogger('main') |
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
// MODIFIED BY JON SOWMAN | |
// DELAYMICROSECONDS() DOES NOT DISABLE | |
// INTERRUPTS ANY MORE, SO DO IT | |
// MANUALLY | |
#include <WString.h> | |
#include <ctype.h> | |
#include <string.h> | |
#include <util/crc16.h> |
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
/* | |
* NewSerialServo | |
* -------------- | |
* Servo control from the Serial port | |
* | |
* #### | |
* Modified by Adam Greig, Jun 2010, to just move the servo | |
* to one position or the other on '.' or ',' input. | |
* #### | |
* |
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 cherrypy | |
from pygooglechart import GoogleOMeterChart | |
import urllib, urllib2 | |
def getdata(): | |
page = urllib2.urlopen("http://robertharrison.org/listen/view.php?reg=/APEX/") | |
lastdata = [] | |
lines = page.read().split("\n") | |
for line in lines: | |
data = "".join(line.split(" : ")[1:]).split(",") |
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 serial | |
import urllib2 | |
import time | |
ser = serial.Serial("/dev/ttyUSB0", 4800) | |
lasttime = time.time() | |
while 1: | |
line = ser.readline() | |
if time.time() - lasttime < 10.0: | |
continue |
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
""" | |
fldigi autotuner script | |
Released into the public domain by Adam Greig in 2010 | |
""" | |
import xmlrpclib | |
import math | |
import time | |
# Desired audio frequency (Hz) |
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
# Output a colour histogram PNG from a supplied image | |
import sys | |
import matplotlib | |
from matplotlib.backends.backend_agg import FigureCanvasAgg | |
from matplotlib.figure import Figure | |
import numpy | |
import Image | |
if len(sys.argv) != 3: | |
print "usage:", sys.argv[0], "<image filename>", "<output filename>" |
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
// Firefly | |
// An ATtiny13 connected to a bit of metal to detect touch | |
// and an LED which it can PWM. | |
// | |
// Sleep most of the time, wake up occasionally, if we're being touched | |
// then light up a bit. | |
// | |
// Adam Greig, July 2010 | |
#include <avr/io.h> |
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
/* | |
* A basic ChibiOS app. | |
* Copyright Adam Greig 2011. | |
* Released under the GNU GPL v3. Insert GPL boilerplate here. | |
*/ | |
#include "ch.h" | |
#include "hal.h" | |
#include "test.h" |
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
# support for stop, prev, next by Paul Martrenchar | |
from xl import event | |
from xl import player | |
import threading | |
import socket | |
socket_thread = None |
OlderNewer