Just run:
curl -ks https://gist.github.com/nicerobot/5652802/raw/install.sh | bash -
Just run:
curl -ks https://gist.github.com/nicerobot/5652802/raw/install.sh | bash -
openssl req -new -newkey rsa:2048 -nodes -keyout server-cert.key -out server-cert-sign-req.csr
# Country Name (2 letter code) [AU]:US
# State or Province Name (full name) [Some-State]:California
# Locality Name (eg, city) []:
# Organization Name (eg, company) [Internet Widgits Pty Ltd]:Flutterby Labs, Inc.
# Organizational Unit Name (eg, section) []:
# Common Name (eg, YOUR name) []:www.dogo.co
| var express = require('express') | |
| , app = express() | |
| , jsdom = require('jsdom'); | |
| app.set('views', __dirname); | |
| app.get('/', function(request, response) { | |
| jsdom.env({ | |
| html: 'http://bryanirace.com', | |
| scripts: ['http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js'], |
| - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request | |
| navigationType:(UIWebViewNavigationType)navigationType { | |
| NSString *urlString = [[request URL] absoluteString]; | |
| if ([urlString hasPrefix:@"js:"]) { | |
| NSString *jsonString = [[[urlString componentsSeparatedByString:@"js:"] lastObject] | |
| stringByReplacingPercentEscapes]; | |
| NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; | |
| NSError *error; |
| /* NOTE: this function requires the Google Maps "geometry" library which | |
| Radarmatic does not currently load. It would need to load Maps with: | |
| http://maps.google.com/maps/api/js?libraries=geometry&sensor=false */ | |
| function sweepArc(context, center_x, center_y, radius, width, | |
| start_angle, end_angle) { | |
| /* Special case: if we are being asked to draw the big gray circle | |
| around the current radar site, then draw a big gray circle. */ |
| # Checkout remote branch | |
| git checkout -t origin/<branch> | |
| # Delete branch (local, remote) | |
| git branch -d <branch> | |
| git push origin --delete <branch> | |
| # Tagging | |
| git fetch --tags [email protected]:jstn/JXHTTP.git | |
| git tag -f 1.0.0 # Move a tag to the latest commit |
| #!/usr/bin/python | |
| import sys | |
| if __name__ == '__main__': | |
| filename = sys.argv[1]; | |
| input = open(filename) | |
| output = open(filename + '.out', 'w') | |
| for line in input: |
| // https://github.com/jasonmoo/t.js, http://news.ycombinator.com/item?id=4378578 | |
| static inline NSString *F(NSString *string, id object) { | |
| NSMutableString *result = [[string mutableCopy] autorelease]; | |
| void (^replace)(NSMutableString *, NSString *, id) = | |
| ^ (NSMutableString *string, NSString *key, id value) { | |
| NSString *stringValue = [value isKindOfClass:[NSNumber class]] | |
| ? [NSString stringWithFormat:@"%@", (NSNumber *)value] : value; | |
| # comments example for .dat or .ledger files | |
| @smallexample | |
| ; This is a single line comment, | |
| # and this, | |
| % and this, | |
| | and this, | |
| * and this. | |
| # If you have a deeply nested tree of accounts, | |
| # it may be convenient to define an alias, for example: |