Skip to content

Instantly share code, notes, and snippets.

@clooth
clooth / sfml.rb
Last active December 23, 2015 09:28 — forked from blt/sfml.rb
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Sfml < Formula
homepage 'http://www.sfml-dev.org'
version '2.0'
url 'http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-sources.zip'
@clooth
clooth / sfml.rb
Last active December 23, 2015 09:28 — forked from blt/sfml.rb
require 'formula'
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class Sfml < Formula
homepage 'http://www.sfml-dev.org'
version '2.0'
url 'http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-sources.zip'
@clooth
clooth / robot.js
Created December 3, 2012 17:29
W00t #1 YEAH!!!! (Zolmesiter)
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
//robot.turnGunRight(90);
robot.clone();
this.direction = 1;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(1);
if (robot.parentId) {
@clooth
clooth / gist:1436712
Created December 6, 2011 04:19
moonscript compilation helper
trap('INT') { exit } # graceful exit
ROOT = Dir.pwd
SRC = File.join(ROOT, 'src')
Dir.mkdir(SRC) unless File.directory?(SRC)
Dir.chdir(SRC)
loop do
Dir['**/*.moon'].each do |file|