Skip to content

Instantly share code, notes, and snippets.

View burtlo's full-sized avatar

Lynn Frank burtlo

View GitHub Profile
@burtlo
burtlo / conway_spec.rb
Last active December 15, 2015 08:09
Kanye's Game of Life
class Point < Struct.new(:x,:y)
def self.at(x,y)
new x, y
end
def ==(other)
other.x == x and other.y == y
end
def around
@jasoares
jasoares / cucumber_init.sh
Created May 4, 2012 17:41
Cucumber init script for non rails applications
#!/bin/bash
# Create the directory structure
mkdir -p features/step_definitions
mkdir -p features/support
# Create a placeholder for the step_definitions folder
touch features/step_definitions/"$(basename `pwd`)_steps.rb"
# Create the environment file
@burtlo
burtlo / universal-target.rb
Created March 25, 2012 23:31
Xcoder - Creating a Universal Target
require 'xcoder'
project_name = 'TestProject'
universal_framework_name = 'Library'
# All paths specified are the logical paths within the Xcode Project
source_filenames = [ 'TestProject/AppDelegate.m' ]
public_headerfilenames = [ 'TestProject/AppDelegate.h' ]
project_headerfilenames = [ 'TestProject/Supporting Files/TestProject-Prefix.pch' ]