{{ message }}

Instantly share code, notes, and snippets.

# David Jacobsdjacobs

Created Apr 18, 2012 — forked from amattn/automatedBuildAndUploadToTestflight.sh
Automated Xcode build and upload to TestFlight.
 #!/bin/sh # Current as working as of 2012/4/17 # Xcode 4.3.2 PROJECT_ROOT="\$HOME/SomeDirWhereYourProjectLives/XXXXXXXX" WORKSPACE="\$PROJECT_ROOT/XXXXXXXX.xcodeproj/project.xcworkspace" CONFIG="AdHoc" SCHEME="XXXXXXXX"
Created Mar 26, 2012 — forked from kleinmatic/propubnerd-gists.md
ProPubNerd Gists
View propubnerd-gists.md

Open Source code doesn’t always come in big complex packages. At ProPublica we sometimes share small, simple snippets of using GitHub "Gists." These Gists range from single-byte file delimiters to an entire JavaScript framework for making stepper graphics. They rarely have documentation and don’t even always have names, but they can be super-useful. Here are some we’ve shared over the past few years:

Created Nov 30, 2011
Euler 24 solution
View euler24.js
 #!/usr/local/bin/node // basic problem setup // the answer we want for the millionth iteration is 2783915460 var iteration = 999999; var size = 2; // figure out the size of the largest factorial smaller than our target iteration var tempi = iteration;
Created Nov 12, 2011
Euler 7 (for Jake)
View primes.js
 primecount=1; i=3; while(primecount < 10001) { // console.log("looking at " + i); isprime = true; for (j=(Math.floor(Math.sqrt(i))); j > 1; j--) { // for (j=2; j < (Math.floor(Math.sqrt(i)) + 1); j++ ) {
Created Nov 10, 2011
Solving Euler problems with @jakedobkin
View gist:1356267
 use strict; #use bigint; use constant TARGET => 20; use constant VERBOSE => 1; my \$total = 0; my %fib; sub fib(\$)
Created Nov 4, 2011
View gist:1339858
 use strict; use POSIX; use bignum; use constant DEBUG => 0; my \$count = 0; my \$x = 2 ** 1043; my @s = split(//,\$x."a");
Created Mar 5, 2011
Every app on my air
View gist:855940
 Apps installed... Soulver Textmate Tinkertool Xcode Chrome FaceTime Evernote Marsedit Perian
Created Mar 1, 2011
Newbie plack mistake
View gist:848569
 # shebang use constant USER => 'xxxx'; use constant PASS => 'xxxx'; # libraries use CGI::PSGI; use Data::Dumper; use File::Glob qw(:globally :nocase); use JSON;
Created Feb 9, 2011 — forked from anonymous/simpledomready.js