Skip to content

Instantly share code, notes, and snippets.

View Rumel's full-sized avatar

Dalton Dick Rumel

  • Senior Software Engineer at @algolia
  • Lincoln, NE
  • 15:31 (UTC -06:00)
View GitHub Profile
import org.antlr.v4.runtime.ANTLRFileStream;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import java.io.File;
import java.io.IOException;
/**
* @author Dalton Dick
*/
@Rumel
Rumel / tournament.py
Created April 30, 2013 05:14
Goes through my movie collection and constructs a tournament so I can watch a movie.
import os
import random
movies = os.listdir("P:\\HD")
cont = False
numberOfMovies = 0
while(not cont):
data = raw_input("Enter a power of 2 for the tournament\nMust be 5 or less: ")
try:
@Rumel
Rumel / movies.py
Created April 30, 2013 05:13
Goes through my movie collection and selects 10 movies. It then takes input and removes that movie from the list until their is one.
import os
import random
def printMovies(movies, leng):
for i in range(0,leng):
print "[" + str(i) + "] " + movies[i]
movies = os.listdir("P:\\HD")
numberOfMovies = 10
@Rumel
Rumel / io23.md
Created March 7, 2013 21:02
GoogleIO Codes

Here are all of the codes to access the easter eggs

Link

ASCII = 01111111

bacon = 10010000

bowling = 01110101