This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gb/gb.h> | |
#include <gb/drawing.h> | |
void main() | |
{ | |
int x =0; | |
int y =0; | |
int clean = 0; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import "CCNode.h" | |
@interface CCNode (RecursiveDescription) | |
- (NSString*)recursiveDescription; | |
@end | |
@implementation CCNode (RecursiveDescription) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. | |
*/ |
OlderNewer