Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#import <Foundation/Foundation.h> | |
@interface Book : NSObject | |
{ | |
NSMutableDictionary *data; | |
} | |
@property (retain) NSString *title; | |
@property (retain) NSString *author; | |
@end |
// | |
// main.m | |
// ProtectTest | |
// Demonstrates newer versions of iOS now support PROT_EXEC pages, for just-in-time compilation. | |
// | |
// Must be compiled with Thumb disabled | |
// | |
// Created by Stuart Carnie on 3/4/11. | |
// Copyright 2011 Manomio LLC. All rights reserved. | |
// |
// Copyright (c) 2011 Eloy Durán <eloy@fngtps.com> | |
// Available under the MIT license: http://www.opensource.org/licenses/mit-license.php | |
#import <objc/message.h> | |
@interface FTAccessibleActionSheet : UIActionSheet | |
- (void)copyAccessibilityMetadataFrom:(NSString *)title toControl:(UIView *)control; | |
@end | |
@implementation FTAccessibleActionSheet |
require "rubygems" | |
begin | |
require 'sequel' | |
rescue LoadError | |
puts "Please run gem install sequel" | |
exit! | |
end | |
DB = Sequel.connect(:adapter => 'mysql2', | |
:host => '127.0.0.1', |
RVM home page: http://rvm.beginrescueend.com | |
Install RVM | |
------------ | |
See http://rvm.beginrescueend.com/rvm/install/ | |
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
Install rvm for all users |
// ==UserScript== | |
// @name Fluid Dock Badge for Trello | |
// @namespace http://fluidapp.com | |
// @description Display a dock badge for the Trello Dashboard with the number of new notifications | |
// @include *.trello.com | |
// @author Laurent Goussard | |
// ==/UserScript== | |
if (!window.fluid) { | |
return; | |
} |
class FiberError < StandardError; end | |
class Fiber | |
attr_accessor :name | |
def initialize &block | |
raise ArgumentError, 'new Fiber requires a block' unless block_given? | |
@block = block | |
@yield_sem = Dispatch::Semaphore.new(0) | |
@resume_sem = Dispatch::Semaphore.new(0) |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# Rake Quick Reference | |
# by Greg Houston | |
# http://ghouston.blogspot.com/2008/07/rake-quick-reference.html | |
# ----------------------------------------------------------------------------- | |
# Running Rake | |
# ----------------------------------------------------------------------------- | |
# running rake from the command-line: | |
# rake --help |
class ActionDispatch::Routing::Mapper | |
def draw(routes_name) | |
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
end | |
end | |
BCX::Application.routes.draw do | |
draw :api | |
draw :account | |
draw :session |