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 / Makefile
Created August 27, 2015 09:04
java/android makefile
JAR_PKG = JarName.jar
CP = cp
#change this to fit the version of installed android sdk on build system
API_LEVEL=22
#unity expects jdk 1.6
JFLAGS = -cp ${jar_file} -g -source 1.6 -target 1.6
JC = javac
JAR = jar
@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.
*/

Keybase proof

I hereby claim:

  • I am rkachowski on github.
  • I am rkachowski (https://keybase.io/rkachowski) on keybase.
  • I have a public key whose fingerprint is 74A1 D07F 4F6E F13C DD16 3757 5758 E143 DEEC 91B1

To claim this, I am signing this object:

@rkachowski
rkachowski / Rakefile
Last active August 29, 2015 14:07
Rudimentary C Rakefile
rule ".o" => ".c" do |t|
execute "cc -c #{t.source} -o #{t.name}"
end
rule /^((?!\w*\.\w*).)*$/ => ".c" do |t|
deps = t.prerequisites
objects = deps.select { |d| d.pathmap == ".o" }
execute "cc #{t.source} #{objects.join ' '} -o #{t.name}"
end
This file has been truncated, but you can view the full file.
renderer:transform:] + 4679
5 SpriteBuilder 0x0000000105f16791 -[CCSprite(NoARC) draw:transform:] + 401
6 SpriteBuilder 0x0000000105f165c5 -[CCNode(NoARC) visit:parentTransform:] + 853
7 SpriteBuilder 0x0000000105d42849 -[CCNode(NodeInfo) customVisit:parentTransform:] + 249
8 SpriteBuilder 0x0000000105f16507 -[CCNode(NoARC) visit:parentTransform:] + 663
9 SpriteBuilder 0x0000000105d42849 -[CCNode(NodeInfo) customVisit:parentTransform:] + 249
10 SpriteBuilder 0x0000000105f16507 -[CCNode(NoARC) visit:parentTransform:] + 663
11 SpriteBuilder 0x0000000105d42849 -[CCNode(NodeInfo) customVisit:parentTransform:] + 249
12 SpriteBuilder 0x0000000105f16507 -[CCNode(NoARC) visit:parentTransform:] + 663
13 SpriteBuilder 0x0000000105d42849 -[CCNode(NodeInfo) customVisit:parentTransform:] + 249
@rkachowski
rkachowski / download.rb
Last active September 2, 2015 13:12
mass downloadin
require 'oga'
require 'open-uri'
require 'uri'
require 'rest-client'
require 'pry'
require 'thread'
$log_lock = Mutex.new
def get_urls
page_url = ARGV[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"
}