This file contains hidden or 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
| alias rake='macrake' | |
| export GEM_HOME=~/.gem/macruby/1.9.2 | |
| export GEM_PATH=~/.gem/macruby/1.9.2:/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/lib/ruby/Gems/1.9.2 |
This file contains hidden or 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
| class Exception | |
| alias_method :_message, :message | |
| def message | |
| "#{_message}\t\n#{backtrace.join("\t\n")}" | |
| end | |
| end |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-/Apple/DTD PLIST 1.0/EN" "http:/www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.google.keystone.daemon</string> | |
| <key>KeepAlive</key> | |
| <false/> | |
| <key>RunAtLoad</key> | |
| <false/> |
This file contains hidden or 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
| -(void)pingAnalytics:(NSString*)action { | |
| NSMutableString* params = [NSMutableString stringWithFormat:@"uuid=%@",[self getUUID]]; | |
| #ifdef BETA | |
| [params appendString:@"&beta=1"]; | |
| #endif | |
| NSString* url = [NSString stringWithFormat: @"https://update.appscape.at/degrees/%@?%@", action, params]; | |
| NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:url]]; | |
| [request setHTTPMethod:@"GET"]; | |
| [[NSURLConnection connectionWithRequest:request delegate:self] retain]; |
This file contains hidden or 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
| # Xcode Auto-Versioning | |
| # | |
| # Updates your Info.plist's CFBundleVersion with the current git tag and/or sha. | |
| # | |
| # based on https://github.com/elliottcable/xcode-git-versioner | |
| # | |
| # Usage: | |
| # 1. Right-click the target you want to add the versioning phase to (usually the target that builds your app) | |
| # 2. Select: Add -> New Build Phase -> New Run Script Build Phase | |
| # 3. Specify /usr/bin/env ruby as the shell for the script |
This file contains hidden or 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
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: redis-server | |
| # Required-Start: $syslog | |
| # Required-Stop: $syslog | |
| # Should-Start: $local_fs | |
| # Should-Stop: $local_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: redis-server - Persistent key-value db |
This file contains hidden or 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
| because -> | |
| intendation -> | |
| really -> | |
| sucks -> | |
| even -> | |
| with -> | |
| coffee-script | |
| goliath it is then. |
This file contains hidden or 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 <dispatch/dispatch.h> | |
| #import <objc/runtime.h> | |
| @implementation MySingleton | |
| static MySingleton * __singleton = nil; | |
| + (MySingleton *) sharedInstance_accessor | |
| { | |
| return ( __singleton ); |
This file contains hidden or 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
| contentView: SC.TemplateView.design({ | |
| layerId: 'my-root-id', | |
| templateName: 'main_page', | |
| mouseDown: function(evt) { | |
| console.log('bug?'); | |
| evt.preventDefault(); | |
| evt.stopPropagation(); | |
| evt.stop(); | |
| return NO; | |
| } |