Skip to content

Instantly share code, notes, and snippets.

@azich
azich / MIPS Sudoku Solver
Created February 2, 2011 01:22
A sudoku solver written in MIPS intended for use by UIUC CS232 in SPIM
# MIPS Sudoku Solver
# Andrew Zich - 2011
.data
sudoku: .byte 8 0 0 4 0 6 0 0 7
.byte 0 0 0 0 0 0 4 0 0
.byte 0 1 0 0 0 0 6 5 0
.byte 5 0 9 0 3 0 7 8 0
.byte 0 0 0 0 7 0 0 0 0
.byte 0 4 8 0 2 0 1 0 3
@azich
azich / check.sh
Created September 15, 2011 17:19
Script for checkout CS241 MP3 output
#!/bin/bash
if [[ $# -eq 0 ]]; then
echo "Usage: check.sh [file] [ [file] ... ]"
exit 2
fi
tmpfile=`mktemp .tmp.XXXXXXXX`
for file in $@; do
@azich
azich / testfile3
Created October 18, 2011 00:19
Test File for parmake
a:
echo A begins
sleep 5
echo A ends
b:
echo B begins
sleep 5
echo B ends
c: a b
echo C begins
@azich
azich / stopwatch.py
Created May 22, 2012 19:16
Lightweight Python Stopwatch
import time
from sys import stdout
try:
start = time.time()
while True:
s = time.time() - start
d = int(s / 86400)
s -= d * 86400
h = int(s / 3600)