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
h_space = 57 / 7; // 8 LEDs = 7 gaps | |
v_space = 58.3 / 7; | |
gap = 1.5; | |
height = 2; | |
rotate([180,0,0]){ | |
difference(){ | |
translate([0,0,4.5/2]) | |
cube([69, 69, 4.5], center=true); | |
// circuit board cutout |
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
## Cross-compilation commands | |
CC = arm-none-eabi-gcc | |
LD = arm-none-eabi-gcc | |
AR = arm-none-eabi-ar | |
AS = arm-none-eabi-as | |
OBJCOPY = arm-none-eabi-objcopy | |
OBJDUMP = arm-none-eabi-objdump | |
SIZE = arm-none-eabi-size | |
# our code |
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
$100=1.000 | |
$101=0.700 | |
$102=100.000 | |
$110=20000.000 | |
$111=20000.000 | |
$112=10000.000 | |
$120=1500.000 | |
$121=2000.000 | |
$122=1000.000 | |
$130=200.000 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
module multiHull(){ | |
for (i = [1 : $children-1]) | |
hull(){ | |
children(0); | |
children(i); | |
} | |
} | |
module sequentialHull(){ | |
for (i = [0: $children-2]) |
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
#! /bin/env bash | |
number_contestants=$1 | |
# convert to hexadecimal | |
number_contestants=$(echo "ibase=10 ; obase=16 ; $number_contestants" | bc) | |
# take image | |
ffmpeg -f v4l2 -i /dev/video0 -frames:v 1 -y foo.png | |
# md5sum it and extract the value |
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 python3 | |
import serial | |
import subprocess | |
SENSITIVITY=250 | |
PORT1="/dev/ttyUSB1" | |
DEBUG = False | |
DELAY = 0.25 ## seconds, prevents race |
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
/******************************************************************************* | |
TINY TACHOMETER | |
TACOMETRO C/ PIC12F675 E LCD (M�TODO LPLEX - 3 FIOS) | |
METODO: LEITURA DO PERIODO |
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 | |
## Simple controller shell to interface with MPC with minimal keystrokes | |
## Note: ssh -p 23 -L 6600:audiobox:6600 elliotwilliams.org | |
## makes it work from remote locations. Tunnels into my network. :) | |
import mpdclient2, time, pdb, curses, os | |
import cPickle as pickle | |
## os.system("export MPD_HOST='audiobox'") |