This file contains hidden or 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/python | |
import sys | |
import argparse | |
from plumbum import local, FG, BG | |
local = local | |
FG = FG | |
BG = BG | |
def getArgParser(program=__file__, desc=''): |
This file contains hidden or 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
updir(){ | |
if [ $# -gt 0 ];then | |
path="" | |
for (( i=1; i<=$1; i++ )); do | |
path=$path"../" | |
done | |
cd $path | |
else | |
cd ../ | |
fi |
This file contains hidden or 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
function Timer(el, callbackFunction) { | |
// init the timer | |
// el - element for time to be updated | |
// callbackFunction - string of function name to | |
// be called when the countdown is finished. | |
this.init = function(el, callbackFunction) { | |
this.seconds = 0; | |
this.minutes = 0; | |
this.counterCaller = null; | |
this.timer = el; |
This file contains hidden or 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
var Runner = function() {}; | |
Runner.prototype = new Bot("Runner"); | |
Runner.prototype.setup = function() { | |
this.clicks = 0; // keep track of how many clicks | |
this.opponent = -1; | |
this.speed = 2; | |
this.safety = 7; | |
}; | |
Runner.prototype.getAngle = function(point) { | |
dx = 0; |
This file contains hidden or 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
<?php | |
/** | |
* @name Curling.class.php | |
* | |
* Purpose: encapsulates and simplifies curl functionality | |
* | |
* @author Chad G. Hansen | |
*/ | |
class Curling | |
{ |
NewerOlder