Skip to content

Instantly share code, notes, and snippets.

#!/bin/python
import sys
if len(sys.argv) != 3:
sys.exit("Usage: flatten_input.py board_in flattened_board_out")
fin_name = sys.argv[1]
fout_name = sys.argv[2]
#!/bin/python
import sys, none
if len(sys.argv) != 3:
sys.exit("Usage: flatten_input.py board_in flattened_board_out")
fin_name = sys.argv[1]
fout_name = sys.argv[2]
@computercolin
computercolin / thirtytwo_one_multiplexer_test.v
Created October 12, 2011 00:42
thirtytwo_one_multiplexer_test.v
// Colin Zwiebel
// Hair by Chanel
// 10 Oct 2011
module thirtytwo_one_multiplexer_test;
wire out;
reg [0:31] d_in_bin;
reg [0:4] s;
reg ans;
reg d_in0, d_in1, d_in2, d_in3, d_in4, d_in5, d_in6, d_in7, d_in8, d_in9, d_in10, d_in11, d_in12, d_in13, d_in14, d_in15, d_in16, d_in17, d_in18, d_in19, d_in20, d_in21, d_in22, d_in23, d_in24, d_in25, d_in26, d_in27, d_in28, d_in29, d_in30, d_in31;
@computercolin
computercolin / palindrome.asm
Created October 4, 2011 00:12
Palindrome Checking Algorithm in MIPS assembly
# Joseph Meyer
# Colin Zwiebel
# 3 Oct 2011
# Palindrome
# Recursive implimentation of Palindrome checking algorithm
.data
input: .asciiz "racecar"
input_len: .word 7
@computercolin
computercolin / synctoy.cmd
Created September 26, 2011 18:46
SyncToy .cmd and .bat to schedule with a minimized window (instead of popup terminal)
== synctoy.cmd ==
start /d %~dp0 /min sync_all.bat
# /d set working direcotory
# %~dp0 location of running script
== synctoy.bat ==
"C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" -R
# -R Sync all folder pairs
@computercolin
computercolin / rdesk
Created May 1, 2011 18:11
rdesktop convenience bash script
#!/bin/sh
# Execs rdesktop with good settings for Colin's laptop.
# -D hide MW decoratinos
# -z enable RDP compression
# -g WxH viewport geometry
# -r sound:remote play sounds remotely
rdesktop -D -z -g 1440x870 -r sound:remote $1
@computercolin
computercolin / Upgrades to HypeMachine Controls Extension 0.15
Created March 13, 2011 20:10
Made the following improvements * Clicking the HypeMachine logo in the popup displays song notification (aka the "What am I listening to button?") * Using controls in the popup now displays the song notification (aka the "okay, I changed songs, NOW what a
diff -ruN dhgakpegakokblenhlahhflalmlnehmn/0.15_0/background.html cz_hypem_controls_ext/background.html
--- dhgakpegakokblenhlahhflalmlnehmn/0.15_0/background.html 2011-03-13 15:37:49.000000000 -0400
+++ cz_hypem_controls_ext/background.html 2011-03-13 15:35:09.000000000 -0400
@@ -57,10 +57,11 @@
if(extension_port != null)
extension_port.postMessage({ track : track });
- else if (notification_port != null)
+
+ if (notification_port != null)
$python
import smu
s = smu.smu()
libusb couldn't open USB device /dev/bus/usb/006/005: Permission denied.
libusb requires write access to USB device nodes.
Found device with vendor ID = 0x6666 and product ID = 0xABCD, but could not open it.
>> =(
$cd /dev/bus/usb/006
Sat Oct 9 23:07:38 EDT 2010
Explorer: Colin Zwiebel
To be combined with SDZ's spec from this package:
http://sdz.fedorapeople.org/etherpad-0-0.11.20100429.fc14.src.rpm
# Apply this patch
etherpad_fedora_env_patch.diff
( http://gist.github.com/631456 )
diff --git a/bin/exports.sh b/bin/exports.sh
index d0ced6f..f23c43d 100644
--- a/bin/exports.sh
+++ b/bin/exports.sh
@@ -37,13 +37,13 @@ if [ `uname` == "FreeBSD" ]; then
export PATH="$JAVA_HOME/bin:$SCALA_HOME/bin:/usr/local/mysql/bin:$PATH"
export MYSQL_CONNECTOR_JAR="/usr/local/share/java/classes/mysql-connector-java.jar"
else
- [ -e "/usr/lib/jvm/java-6-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
+ [ -e "/usr/lib/jvm/java-1.6.0-openjdk" ] && export JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk"