Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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 / about.md
Created August 9, 2011 17:22 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@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 / 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 / Week2-3.4.js
Created January 17, 2012 07:12
Code Academy: Week 2 - Year of Code 3.4. They won't let this pass.
var isOdd = function (n) {
if (n % 2 === 0) {
return false;
} else {
return true;
}
};
var isEven = function (n) {
if (n % 2 === 0) {
@kusold
kusold / homework1.py
Created April 4, 2012 02:00
CSE 680 Homework 1
import time
def worthlessCalculator(n):
if n <= 3:
return 5
output = (3 * worthlessCalculator(n-1) + 5 * worthlessCalculator(n-3) + 7 * worthlessCalculator(n-4) + 11) % 15490549
return output
input = -1
@kusold
kusold / gist:2385501
Created April 14, 2012 16:14 — forked from axelav/gist:1839777
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@kusold
kusold / grails-version.sh
Created April 30, 2012 15:20
Switch Grail's Versions using Symlinks.
#!/bin/sh
##
## Switches grails versions by changing the the symlink ~/grails to a
## ~/grails-$VERSION
##
## Author: Dan Lynn ([email protected])
## Modified: Mike Kusold ([email protected])
if [ -z "$1" ]; then