Skip to content

Instantly share code, notes, and snippets.

View devinrhode2's full-sized avatar
😀

Devin Rhode devinrhode2

😀
View GitHub Profile
leadingMultiple = 0
multiples = {}
# first do multiples of 3:
while leadingMultiple < 1000 do
multiples[leadingMultiple] = :present;
leadingMultiple += 3
end
# reset to zero
#!/bin/bash
mkdir temp
cd temp
wget http://downloads.sourceforge.net/project/tcpick/tcpick/0.2.1/tcpick-0.2.1.tar.gz
tar zxvf tcpick-0.2.1.tar.gz
cd tcpick-0.2.1
CFLAGS="-m32" ./configure
echo "char *lookup();" >> src/lookup.h
make
sudo make install
#!/bin/bash
mkdir temp
cd temp
wget http://downloads.sourceforge.net/project/tcpick/tcpick/0.2.1/tcpick-0.2.1.tar.gz
tar zxvf tcpick-0.2.1.tar.gz
cd tcpick-0.2.1
CFLAGS="-m32 --std=c89" ./configure
echo "char *lookup();" >> src/lookup.h
make
sudo make install
@devinrhode2
devinrhode2 / setup.sh
Created November 7, 2012 19:04 — forked from pbyrne/setup.sh
Set Up Work Laptop
#!/bin/bash
echo "Updating Homebrew and bash completion"
brew update
echo "
# homebrew completion files for installed libraries
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
" >> ~/.bash_profile
/**package
{
"name" : "onefiledemo",
"version" : "1.8.3",
"description" :"Just this one file, it's a whole package!"
"dependencies": {
}
}
**/
@devinrhode2
devinrhode2 / shield.js
Last active December 11, 2015 10:39 — forked from occ/shieldjs
/*! Shield.js v0.0.1 - Stack traces and moar - MIT licensed - Github.com/Shield/shield.js */
// Let's var the library namespace, so you can keep the library to a certain scope, (and also use multiple versions)
// If any issues arise complaining that Shield is undefined (not on the global object) then we can address that when it arises
/**
* exceptionalException
* You know, for something that should really never occur
*/
var exceptionalException = function exceptionalExceptionF(message) {
var suits = ['Heart', 'Diamond', 'Club', 'Spade'];
var value = ['2','3','4','5','6','7','8','9','10','J','Q','K','A'];
function Card(num, suit) {
this.num = num;
this.suit = suit;
}
function Deck() {
this.cards = [];
data:text/html,
<body id='b'>
<textarea spellcheck="false" id="t" autofocus></textarea>
<script>
var f,
t = document.getElementById("t"),
assertEqual: function(actual, expected) {
// Uses TraceKit to get stacktrace of caller,
// it looks for the line number of the first anonymous eval
// Stack traces are pretty nasty and not standardized yet
// so this is not as elegant as one might hope.
// Safari doesn't even give line numbers for anonymous evals,
// so they can go sit in the dunce corner today.
// This returns 0 if not found, which will mean that all
// the assertion failures are shown on the first line.
var getLineNum = function(stacktrace) {