Skip to content

Instantly share code, notes, and snippets.

View rkachowski's full-sized avatar
👨‍🎤
whats a github status?

Donald Hutchison rkachowski

👨‍🎤
whats a github status?
View GitHub Profile
@rkachowski
rkachowski / clear.c
Created February 4, 2010 09:11
gameboy rom to try clear screen in apa mode
#include <gb/gb.h>
#include <gb/drawing.h>
void main()
{
int x =0;
int y =0;
int clean = 0;
@rkachowski
rkachowski / OBB.cs
Created March 7, 2010 20:30
An Oriented Bounding Box object with intersection methods for use in 2D projects under the XNA framework
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Extensions;
namespace OBBTest
{
#!/usr/bin/env ruby
#a script to toggle netbook launcher in UNR
#check processes to see if netbook-launcher is running
l = `ps -A | grep netbook-launch`
#get the proces id
p_id = l.strip.split(" ").first
@code_words = {
"catapult"=>"chucky go-go",
"starmonkeys"=>"Phil and Pete, those prickly chancellors of the New Reich",
"put the kabosh on"=>"put the cable box on",
"Nigeria"=>"Ny and Jerry's Dry Cleaning (with donuts)",
"firebomb"=>"heat assisted living"
}
@rkachowski
rkachowski / game_of_life.rb
Created June 6, 2010 20:45
conway's game of life in gosu/chingu
class GameOfLife < Chingu::GameState
CELL_SIZE = 4
@@tick =0
def initialize
super
@grid = generate_grid
self.input={:left_mouse_button=>:set_grid_block,:space=>:toggle_running,
:right_mouse_button=>:unset_grid_block,:z=>:reset,:n=>:update_grid}
@running = false
@rkachowski
rkachowski / .gitignore
Created April 16, 2012 13:13
RequireJS + CoffeeScript example
*.swp
@rkachowski
rkachowski / download.coffee
Created May 25, 2012 12:40
nodejs downloader
http = require 'http'
fs = require 'fs'
URL = require 'url'
class Downloader
@download_image:(image_url, destination, callback)
options = URL.parse image_url
http.get(options, (response) ->
fileStream = false
#!/usr/bin/env ruby
require 'csv'
require 'json'
csv_data = CSV.read ARGV[0]
headings = csv_data[0].compact
result = []
csv_data[1..-1].each do |row|
@rkachowski
rkachowski / CCNode+RecursiveDescription.h
Last active August 29, 2015 13:56
Do the same as UIKit#recursiveDescription, but for CCNode instead of UIView
#import <Foundation/Foundation.h>
#import "CCNode.h"
@interface CCNode (RecursiveDescription)
- (NSString*)recursiveDescription;
@end
@implementation CCNode (RecursiveDescription)
@rkachowski
rkachowski / gist:10985907
Created April 17, 2014 14:03
level 13 untrusted
/*
* robotMaze.js
*
* The blue key is inside a labyrinth, and extracting
* it will not be easy.
*
* It's a good thing that you're a AI expert, or
* we would have to leave empty-handed.
*/