Here is a link
View gist:9400090
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2014-03-06T21:15:52+00:00] INFO: Forking chef instance to converge... | |
[2014-03-06T21:15:52+00:00] INFO: *** Chef 11.10.4 *** | |
[2014-03-06T21:15:52+00:00] INFO: Chef-client pid: 1478 | |
[2014-03-06T21:15:53+00:00] INFO: Setting the run_list to ["recipe[dashboard::default]"] from JSON | |
[2014-03-06T21:15:53+00:00] INFO: Run List is [recipe[dashboard::default]] | |
[2014-03-06T21:15:53+00:00] INFO: Run List expands to [dashboard::default] | |
[2014-03-06T21:15:53+00:00] INFO: Starting Chef Run for saucy | |
[2014-03-06T21:15:53+00:00] INFO: Running start handlers | |
[2014-03-06T21:15:53+00:00] INFO: Start handlers complete. | |
[2014-03-06T21:15:53+00:00] INFO: directory[/var/spool/rsyslog] owner changed to 0 |
View NSInputStreamRead.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <CommonCrypto/CommonDigest.h> | |
// From the people who brought you goto fail; | |
// http://www.opensource.apple.com/source/CommonCrypto/CommonCrypto-55010/LocalTests/XTSTest/hexString.c | |
static char PIHexbyteMap[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; | |
static int PIHexbyteMapLen = sizeof(PIHexbyteMap); | |
/* Utility function to convert nibbles (4 bit values) into a hex character representation */ | |
static char |
View gist:59120dbce8b8c9ddbed1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bacon::Error: File comparison error `execution_output.txt` for install_custom_workspace: | |
--- DIFF ----------------------------------------------------------------------- | |
Attempting to activate Reachability (3.1.0) | |
Activated Reachability at Reachability (3.1.0) | |
Requiring nested dependencies () | |
- Creating possibility state for Reachability (3 remaining) | |
- Attempting to activate Reachability (3.1.1) | |
+ Creating possibility state for Reachability (4 remaining) | |
+ Attempting to activate Reachability (3.2) | |
Found existing spec (Reachability (3.1.0)) |
View gist:d6f84f65ea1dbc73367d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby --version | |
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0] | |
$ bundle exec rake | |
rm -rf banana-lib && tar zxf banana-lib.tar.gz | |
Using ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0] | |
View generate.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'xcodeproj' | |
# Avoid spaces, otherwise automatic crash symbolication breaks. | |
# To change how it appears to the user, set Bundle Display Name in the Info plist. | |
TARGET_NAME = "ExampleApp" | |
CONFIG = {"APP_BUNDLE_ID" => "com.example.example-app", | |
"ASSETCATALOG_COMPILER_APPICON_NAME" => {debug: "AppIconDevelopment", | |
release: "AppIcon"}, | |
"ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME" => "LaunchImage"} |
View spec_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "tempfile" | |
require 'spec/runner/formatter/html_formatter' | |
require "cgi" | |
# When we're running specs, modify our class under test to create | |
# an image tag when it is inspected. | |
class Tree | |
def inspect | |
file = Tempfile.new("debug-tree") | |
self.to_image(file.path) |
View delegate_proc.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The idea here is to emulate Groovy's delegate= pattern for closures. | |
# We define a builder module. This will receive method calls | |
# from our builder. It could be an instance of an object if we wanted. | |
module FamilyBuilder | |
def self.parent(name) | |
puts "Parent: #{name}" | |
end | |
def self.child(name) |
View gist:645582
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require racket/pretty) | |
(define (job start end) (list start end)) | |
(define (job-with-duration start duration) | |
(job start | |
(+ start duration))) | |
(define (job-end job) | |
(second job)) |
View gist:1017519
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nebula:mailcatcher(master) $ rake --trace | |
(in /Users/phil/Development/ruby/mailcatcher) | |
** Invoke default (first_time) | |
** Invoke build (first_time) | |
** Invoke build:sass (first_time) | |
** Execute build:sass | |
** Invoke build:coffee (first_time) | |
** Execute build:coffee | |
** Invoke build:rdoc (first_time) | |
** Invoke rdoc (first_time) |
OlderNewer