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
# | |
# This script creates a repository and sets it up with a post receive | |
# hook that checks out the code to the desired directory. | |
# | |
# Really nice for setting up an easy way to push code to a remote | |
# server without lots of overhead. | |
# | |
# After running this script simply add a remote locally like | |
# | |
# git remote add web ssh://you@server/path/to/repo.git |
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 start() | |
{ | |
if(frontIsClear()) | |
{ | |
move(); | |
} | |
else | |
{ | |
putBall(); | |
} |
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
import sys | |
SENTINEL = -1 | |
def lookandsay(num): | |
"""Return the look and say version of num.""" | |
num = str(num) |
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 Lexicon(file){ | |
this.data = { | |
'a': { | |
'b': { | |
's': {} | |
} | |
} | |
}; | |
} |
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
import csv | |
import sys | |
import pprint | |
FIRST_ROW = 6 | |
DATE_INDEX = 1 | |
EMAIL_INDEX = 7 | |
FARE_INDEX = 14 |
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
import java.util.*; | |
public class ConsoleProgram{ | |
private Scanner scanner; | |
public static void main(String[] args){ | |
// Assume the class name is passed in as the first argument. | |
if(args.length == 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
import java.util.*; | |
public class Randomizer{ | |
public static Random theInstance = null; | |
public Randomizer(){ | |
} | |
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
import java.util.*; | |
import java.lang.*; | |
public class ObjectTracker{ | |
// Code for grader | |
private static HashMap<String, ArrayList<Object>> objTracker = new HashMap<String, ArrayList<Object>>(); | |
// create instancetracker | |
private static final int CALLER_INDEX = 3; |
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
Verifying that +jkeesh is my blockchain ID. https://onename.com/jkeesh |
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
import java.util.*; | |
public class Grader | |
{ | |
public static void runInputTest(Autograder grader, String[] inputs, String message) | |
{ | |
// Create a student program | |
SnackPack studentProgram = new SnackPack(); |
OlderNewer