Skip to content

Instantly share code, notes, and snippets.

View TomK32's full-sized avatar

Thomas R. Koll TomK32

View GitHub Profile
@triplefox
triplefox / gist:2900005
Created June 9, 2012 07:40
list of gamedev (and related) ircs
% cat model.m
#import <Foundation/Foundation.h>
#import <dispatch/dispatch.h>
void Init_model() {};
@interface Model : NSObject {
//int result;
NSString *result;
dispatch_group_t group;
@techwhizbang
techwhizbang / rspec2_mongoid_activerecord_rails3.rb
Created October 19, 2010 22:34
RSpec 2 with ActiveRecord and Mongoid together (temporary hack)
#put this in your spec_helper.rb if you're using Rails 3, Rspec2, Mongoid, and #ActiveRecord together until the "real" fix comes along
class RSpec::Core::Configuration
attr_accessor :fixture_path, :use_transactional_fixtures
def fixture_path=(path)
@fixture_path = path
end
def use_transactional_fixtures=(bool)
@use_transactional_fixtures = bool