Skip to content

Instantly share code, notes, and snippets.

View StevenClontz's full-sized avatar

Steven Clontz StevenClontz

View GitHub Profile
@StevenClontz
StevenClontz / README.md
Last active May 23, 2016 16:51
MaPP HSC17 Call for Puzzle Designers

MaPP High School Challenge '17

Thank you for your interest in designing a puzzle for Mathematical Puzzle Program's (MaPP) High School Challenge '17 (HSC17)! We provide our mathematical puzzlehunt competition materials to campuses across the country without cost as part of our mission of promoting the fun of mathematical problem solving. Your contributions are what make this possible.

Please read this short document outlining what we need from our volunteer

@StevenClontz
StevenClontz / older_bash_prompt.sh
Last active April 6, 2016 03:47 — forked from insin/bash_prompt.sh
Older bash prompt
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@StevenClontz
StevenClontz / README.md
Last active December 18, 2015 00:49
ROT Pairs

ROT Pairs

Finds a list of tuples, each of which is a triple (word1, word2, n) where word1 and word2 are Scrabble words of length 4, and n is a number such that word2 is a ROT-n cypher of word1.

Word list

You'll need your own Scrabble word list. I used SOWPODS, which I found here: Save it as words.txt to use the script.

  1. What old-school NES game tells the story of Ryu Hiyabusa's quest for vengeance? Only pure guess, but Ninja Gaiden?
  2. Name the crazy clown who's the major villain of Final Fantasy VI. Kefka
  3. Who voices Nigel Thornberry in Nickelodeon's "The Wild Thornberrys"? Tim Curry
  4. What contemporary cartoon's tagline is, "It's anything but."? I'd have to assume the Regular Show but I've never seen it.
  5. What band did the songs "Hot-Blooded" and "Cold as Ice"? Foreigner, unless I've develped Double Vision
  6. Name the Pokémon whose special ability is to put other Pokémon to sleep, and is noted for its singing ability. Jigglypuff
  7. What anime features a master detective known as "L"? Dethu Notu!
@StevenClontz
StevenClontz / puzzle0.py
Last active December 14, 2015 07:29
AU AMP'd High School 2013 | Various verifications
import sys
readlines = sys.stdin.readlines() # reads input to list of strings for each line
graph = {
int(line.split()[0]):
[int(item) for item in line.split()[1:]]
for line in readlines
}
for vertex in graph:
@StevenClontz
StevenClontz / comic.html
Created February 12, 2013 22:15
Mockup of an HTML template representing an XKCD (or some other) comic
<div id="comic">
<div class="panel">
<div class="caption">
One lazy morning
</div>
<div class="actor actor-left cueball"></div>
<div class="actor actor-right cueball"></div>
<div class="actor-text actor-left">
I had an idea today
</div>

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

@StevenClontz
StevenClontz / random_input_line.py
Created January 29, 2013 21:10
Choose random line of input while storing only one line at a time and an integer with uniform probability.
# only variables I'm allowed to store/modify
i = 0
stored_string = "No input given!"
# we'll need to be able to make random choices
import random
# solution
while True:
try:
# Ask user for text file to inspect
filename = raw_input('Enter name of text file to inspect: ')
# If the file is legit
try:
# Grab file
f = open(filename)
# Read file, make all lowercase
file_string = f.read().lower()
# Remove all non word characters
import re
@StevenClontz
StevenClontz / outline.md
Last active August 29, 2015 14:18
Programming talk at New Hope High School

About the speaker

Steven Clontz is a mathematician and software developer from Auburn, Alabama, and co-founder of the startup Teloga, LLC responsible for Teloga.com for Music Organizations (a customer relationship manager). He is currently developing the open-source learning management system ALMS at https://github.com/StevenClontz/alms.

Open-source

All of the tools I use in my work are open-source: this typically means that