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) |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
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 |