Skip to content

Instantly share code, notes, and snippets.

@kusold
kusold / FizzBuzz.py
Created November 14, 2011 22:38
Quick implementation of FizzBuzz in Python
i = 1
while ( i < 100):
string = ""
if (i%3 == 0):
string += "Fizz"
if (i%5 == 0):
string += "Buzz"
if string == "":
string = str(i)
string += ", "
@kusold
kusold / ProjectEuler_014.py
Created September 2, 2011 02:21
Project Euler #14
import time
def collatz(n):
length = 0
i = n
while( i > 1):
if(i%2 == 0):
i /= 2
else:
i = 3*i + 1
@kusold
kusold / about.md
Created August 9, 2011 17:22 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@kusold
kusold / Matching.py
Created March 18, 2011 17:17
Takes two text files with one String per line. Attempts to match them.
###############################################################################
## Description: FuzzyMatch.py takes two files with one keyword per line as ##
## command line arguments. It then creates a file with 100% ##
## matches called Match100.txt. Next it tries to match the ##
## remaining files that are at least 75% similar. If more than ##
## one match occurs, it picks the best match and outputs it ##
## to Match75.csv. ##
## ##
## Note: Currently the two files are hardcoded in. Arguments ##
## will be implemented later. ##
@kusold
kusold / OpenGLDrawing.c
Created February 21, 2011 02:15
Requires GLUT
////////////////////////////////////////////////////////
//
// A simple OpenGL program that allows you to place
// line segments, rotate them, and scale them. Some
// other features are changing the color via a right
// click menu, creating a star, creating a polygon,
// and creating a spiral.
//
// When 200 lines are drawn, you need to clear the
// window to draw more.
@kusold
kusold / Shell.c
Created February 21, 2011 02:13
/*
============================================================================
Name : 660__Lab04.c
Author : Michael Kusold
Version : 0.3
Description : This program is an extension of 660_Lab03.c which was an
extension of 660_Lab01. It implements a persistent state
history file. The history file location is ./kusold.history.
The history file is saved immediately before the user exits
the program by ^D. If the program is terminated in another