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-12-19 12:03:03.985 Untitled[96114:507] The maximum NSDecimalNumber is 3402823669209384634633746074317682114550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
2014-12-19 12:03:03.987 Untitled[96114:507] Making an NSDecimalNumber 1 less than that (via an NSString) will be interpreted as 3402823669209384634633746074317682114540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
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
let t1 = TinkerObject(id:1) | |
let t2 = TinkerObject(id:2) | |
// this will work | |
print (t1==t2) | |
// this would be an error: | |
// 'TinkerObject' does not have a member named 'id' | |
// print(t1.id) |
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
# | |
# Forked from http://gist.github.com/90062 | |
# | |
# Drop this into ~/.bash_profile: | |
# Usage: httpdump <interface> | |
# Example: httpdump en0 | |
# | |
function httpdump() { sudo tcpdump -i $1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*|POST \/.*";} | |
# All the above tested only on OS X. |
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
#!/usr/bin/env ruby | |
# | |
# Throw this into a cron job to notify us when our chef clients | |
# have gone AWOL. | |
# | |
# dave@wegoto12.com | |
# | |
require 'rubygems' | |
require 'chef' | |
require 'ruby-units' |
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
#!/usr/bin/env ruby | |
# | |
# grab a full copy of all my github code. | |
# | |
# assumptions: github.user and github.token are set in git | |
# | |
require 'yaml' | |
user = `git config --get github.username`.strip |
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
delegate = Object.new | |
def delegate.netServiceBrowserWillSearch(browser) | |
puts "search commencing!" | |
end | |
def delegate.netServiceBrowser(browser, didFindService:service, moreComing:more) | |
# this never calls regardless of the services on the network. | |
puts "Found service #{service.name}." | |
end |
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
#!/usr/bin/ruby | |
# | |
# I deliberately didn't DRY /usr/local references into a variable as this | |
# script will not "just work" if you change the destination directory. However | |
# please feel free to fork it and make that possible. | |
# | |
# If you do fork, please ensure you add a comment here that explains what the | |
# changes are intended to do and how well you tested them. | |
# | |
# 30th March 2010: |
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
# Add this to line 86 on git-achievements | |
# ruby basecamp.rb "`git config user.name`" "$@" "$2" | |
# then create a file called basecamp.rb with the rest of this file in it | |
#!/usr/bin/env ruby | |
require 'rubygems' rescue nil | |
require 'broach' |
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
// ==UserScript== | |
// @name Hoptoad Textmate Backtrace | |
// @namespace hoptoad | |
// @description Add textmate links to application stacktrace lines on error pages | |
// @include https://YOURACCOUNT.hoptoadapp.com/errors/* | |
// ==/UserScript== | |
// | |
// based on original script from http://userscripts.org/scripts/show/63465 | |
// with much help from @orta |
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
dave@crowbar ~/projects/watched/stevedekorte/io (master) $ ./build.sh | |
-- The C compiler identification is GNU | |
-- The CXX compiler identification is GNU | |
-- Checking whether C compiler has -isysroot | |
-- Checking whether C compiler has -isysroot - yes | |
-- Checking whether C compiler supports OSX deployment target flag | |
-- Checking whether C compiler supports OSX deployment target flag - yes | |
-- Check for working C compiler: /usr/bin/gcc | |
-- Check for working C compiler: /usr/bin/gcc -- works | |
-- Detecting C compiler ABI info |
OlderNewer