Skip to content

Instantly share code, notes, and snippets.

Adam Thomas devdsp

Block or report user

Report or block devdsp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am devdsp on github.
  • I am devdsp (https://keybase.io/devdsp) on keybase.
  • I have a public key whose fingerprint is 4FAB 9EF0 22FE 9941 C516 C179 D948 E348 19E3 6475

To claim this, I am signing this object:

View watch-i3-output.pl
#!/usr/bin/perl
use strict;
use warnings;
use AnyEvent::I3 qw(:all);
my $i3 = i3();
$i3->connect->recv or die "Error connecting to i3";
my $output = undef;
@devdsp
devdsp / dmx.py
Last active Aug 29, 2015
simple ftdi-based DMX script in pthon
View dmx.py
#!/usr/bin/python
import json
from ftdi import *
import math
import time
usleep = lambda x: time.sleep(x/1000000.0)
def start():
View _data\members.yml
devdsp:
name: Adam Thomas
twitter: dev_dsp
@devdsp
devdsp / main.py
Created Nov 27, 2013
Colour Palette generator using PythonMagick
View main.py
#!/usr/bin/env python
from PythonMagick import Image, Color
from math import atan2, pi, pow,sqrt
img = Image('128x128', 'white')
xo = img.columns() / 2
yo = img.rows() / 2
for x in range(img.columns()):
for y in range(img.rows()):
@devdsp
devdsp / centre.pl
Created Nov 14, 2013
a few unfinished scripts for the Roland GRX400 drafting plotter
View centre.pl
#!/usr/bin/perl
use strict;
use warnings;
my ($minx,$miny,$maxx,$maxy);
while(<>) {
chomp;
foreach my $cmd (split/;/) {
@devdsp
devdsp / rfid-checkin.ino
Last active Dec 21, 2015
fixed a roll through bug in the report switch
View rfid-checkin.ino
#include <string.h>
#include <Ethernet.h>
#include <SPI.h>
#include <HttpClient.h>
#include <EthernetClient.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xE0, 0xFE, 0xED };
char server[] = "morphia.mhv";
View TinyNorthToe.ino
#include <TinyWireM.h>
#define HMC5883L 0x1E //0011110b, I2C 7bit address of HMC5883
void pulse(int n){
  while(n-- > 0) {
    digitalWrite(1,HIGH);
    delay(1);
    digitalWrite(1,LOW);
    delay(1);
  }
@devdsp
devdsp / NorthToe.ino
Last active Dec 18, 2015
simple north paw
View NorthToe.ino
#include <Wire.h>
void setup()
{
Wire.begin();
}
void loop()
{
Wire.beginTransmission(0x21);
Wire.write("A");
View main.py
#!/usr/bin/env python
import Image
width, height = 128,512
im = Image.new("RGB", (width,height) )
objective_influence = [[]]*width*height;
def main():
You can’t perform that action at this time.