Skip to content

Instantly share code, notes, and snippets.

@axiomsofchoice
axiomsofchoice / SGI_1600SW_VESA_Spacer.scad
Last active May 2, 2021 23:58
VESA Mount Spacer ...so that I can mount my SGI 1600SW on my Ergotron LX Desk Mount LCD Arm
/*
VESA Mount Spacer
...so that I can mount my SGI 1600SW on my Ergotron LX Desk Mount LCD Arm
Extra hardware: 4x M4x50 bolts , 4x M4 wing nuts, 4x M4 washers
*/
/*
Copyright Dan Hagon, 2013.
This documentation describes Open Hardware and is licensed under the CERN OHL v. 1.2.
@axiomsofchoice
axiomsofchoice / .config
Created June 9, 2012 20:01
raspberry pi .config file
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.1.9 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_GPIO=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_KTIME_SCALAR=y
@axiomsofchoice
axiomsofchoice / gist:2902320
Created June 9, 2012 19:47
lsusb and lsmod
pi@raspberrypi:~/media_build$ lsusb ; lsmod
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 04fc:05d8 Sunplus Technology Co., Ltd Wireless keyboard/mouse
Bus 001 Device 005: ID eb1a:2861 eMPIA Technology, Inc.
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Module Size Used by
fuse 49036 1
joydev 7576 0
evdev 6404 2
pi@raspberrypi:~/media_build$ make all
make -C /home/pi/media_build/v4l all
make[1]: Entering directory `/home/pi/media_build/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/home/pi/media_build/v4l/firmware'
make[2]: Leaving directory `/home/pi/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/pi/media_build/v4l/firmware'
make[2]: Nothing to be done for `default'.
@axiomsofchoice
axiomsofchoice / envelope_choice.py
Created November 27, 2011 14:06
Experimental mathematics for November 2011 London MathsJam
#!/usr/bin/env python
"""This piece of experimental mathematics came out of a discussion at the November 2011
London MathsJam sparked by a Google Plus post from Randall Munroe https://plus.google.com/111588569124648292310/posts/dv9Fi45h91T
Code by @axiomsofchoice with help from other MathsJam attendees, including @Samuel_Hansen
"""
import random
n_trials = 1000000
@axiomsofchoice
axiomsofchoice / bcl9.pde
Created November 3, 2011 19:06
Code pulled together during a joint session at BarCamp London 9 on Arduino and Kinect
// Control a line of LED (connected to pins 8-11) via the serial port
// Sending a character '0', '1', '2' or '3' lights up one of the LEDs
// Note that for debugging the Arduino responds by sending 'A', 'B', 'C' or 'D' respectively
// Code pulled together during a joint session at BarCamp London 9 on Arduino and Kinect
void setup() {
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
@axiomsofchoice
axiomsofchoice / expression.grel
Created September 14, 2011 14:56
Using reconciliation data from the (DBpedia) SPARQL endpoint to output URIs in RDF with the Google Refine RDF extension - slightly hacky :)
if( cell.recon.matched, cell.recon.match.id, "http://dbpedia.org/resource/"+escape(cell.value.replace(/\s/,"_"),'url'))
@axiomsofchoice
axiomsofchoice / serial-test.py
Created September 5, 2011 23:35
Using the kinect to control LEDs on an arduino
"""Sending commands to the IR channel on the Arduino via the serial port
"""
import serial
import time
import OSC
from OSC import *
port = r'\\.\COM9'
@axiomsofchoice
axiomsofchoice / MyRandomNumbers.pde
Created September 3, 2011 14:32
Processing Tutorial #solo11
/*
#myrandomnumber Tutorial
blprnt@blprnt.com
April, 2010
*/
//This is the Google spreadsheet manager and the id of the spreadsheet that we want to populate, along with our Google username & password
SimpleSpreadsheetManager sm;
@axiomsofchoice
axiomsofchoice / solo11-schedule.ics
Created September 2, 2011 08:07
Science Online London Schedule in handy iCal format
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
DTSTART:20110901T183000
DTEND:20110901T203000
SUMMARY:Fringe event: TalkFest - Science and Hobbies
DESCRIPTION:Can (and should) crowdsourced citizen science projects tap
into the enthusiastic occasional workforce of amateurs? Are community
groups based around hobbies (e.g. based around photography, reading or
knitting) a good way to reach 'new audiences', especially for projects