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
#!/usr/bin/env ruby | |
# Made by Pieter de Bie <[email protected]> | |
# Based on a "Pastie" task by someone | |
require "tempfile" | |
GIST_URL = 'http://gist.github.com/gists' | |
GIST_LOGIN_URL = 'https://gist.github.com/session' | |
USERNAME = "pieter" | |
TOKEN = "SweetTokenPower" |
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
# Recursively diff two hashes, showing only the differing values. | |
# By Henrik Nyh <http://henrik.nyh.se> 2009-07-14 under the MIT license. | |
# | |
# Example: | |
# | |
# a = { | |
# "same" => "same", | |
# "diff" => "a", | |
# "only a" => "a", | |
# "nest" => { |
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
1. Download: http://files.getdropbox.com/u/559047/cocoa.tgz | |
2. sudo mv /Library/Frameworks/RubyCocoa.framework -> /Library/Frameworks/RubyCocoa.framework-bad | |
3. upack cocoa.tgz into /Library/Frameworks/ | |
4. sudo mv /Library/Frameworks/RubyCocoa.framework-good -> /Library/Frameworks/RubyCocoa.framework | |
hope it helps |
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
# See also http://github.com/simonjefford/rack_firebug_logger | |
# for this middleware + tests + a rails plugin | |
class FirebugLogger | |
def initialize(app, options = {}) | |
@app = app | |
@options = options | |
end | |
def call(env) | |
dup._call(env) |
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
// See my blog post: | |
// http://benalman.com/news/2010/09/partial-application-in-javascript/ | |
// In the following code sample, invoking the curried function will always | |
// return a function until all arguments are satisfied, at which point the | |
// original function is invoked, returning its result. This means that all | |
// function arguments are required, which also allows the function to be | |
// called either like foo( 1, 2, 3 ) or foo( 1 )( 2 )( 3 ). This also means | |
// that if any argument is omitted, the original function is never invoked. |
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
// | |
// ZbarPlug.h | |
// Phun | |
// | |
// Created by Jeff Lee on 12/12/10. | |
// Copyright 2010 __MyCompanyName__. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> |
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
<!DOCTYPE html> | |
<head> | |
<title>Stay Standalone</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<script src="stay_standalone.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<ul> | |
<li><a href="http://google.com/">Remote Link (Google)</a></li> |
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
/* | |
* Customize Footnotify on your site by adding custom css. | |
* | |
* This file is NOT loaded by the script and must be | |
* implemented on the site in order to apply. | |
* | |
* More info: https://gist.github.com/1046538 | |
* | |
*/ |
OlderNewer