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
| [error] found : anorm.TupleFlattener[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[Nothing,Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing] => (Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)] | |
| [error] required: anorm.TupleFlattener[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[Nothing,Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],T2] => (Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing)] | |
| [error] Note: anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[Nothing,Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing],Nothing] => (Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing) >: anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[anorm.~[Nothing |
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
| description "autossh tunnel" | |
| author "Joni Kähärä " | |
| start on (local-filesystems and net-device-up IFACE=eth0 and net-device-up IFACE=eth1) # assuming we have multiple interfaces | |
| stop on runlevel [016] | |
| respawn | |
| respawn limit 5 60 | |
| exec autossh -M 0 -N -R 10000:192.168.1.1:22 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -o "StrictHostKeyChecking=no" -o "BatchMode=yes" -i /home/user/.ssh/id_rsa username@hostname |
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
| NSString *description = @"ABCDEFGHIJ"; | |
| NSMutableAttributedString *aDescription = [[NSMutableAttributedString alloc] initWithString:description]; | |
| [aDescription addAttributes:@{NSForegroundColorAttributeName: [UIColor redColor], | |
| NSBackgroundColorAttributeName: [UIColor lightGrayColor], | |
| NSUnderlineStyleAttributeName : @(NSUnderlineStyleSingle)} | |
| range:NSRangeFromString(@"{2,5}") | |
| ]; |
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
| val groups = buf.groupBy(x => mapper.writeValueAsString(List(x.get("periodSeconds"), x.get("cIp"), x.get("csHost"), x.get("requestMethod"), x.get("userAgent")))) |
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
| // transcribed from an Apache Spark 1.0 spark-shell session | |
| // using data from http://chriswhong.com/open-data/foil_nyc_taxi/ | |
| // and the QTree algorithm for approximate quantiles over large datasets | |
| // each of the distanceRange and minutesRange calculations below takes about 15 minutes on my four-core SSD-based Macbook Pro | |
| import com.twitter.algebird._ | |
| import com.twitter.algebird.Operators._ | |
| implicit val qtSemigroupD = new QTreeSemigroup[Double](6) | |
| val in = sc.textFile("trip_data") // a directory containing all the trip_data*.csv files downloaded from the above link |
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
| ************************************************************** 0.25 miles | |
| ***************************************************************************************************************** 0.5 miles | |
| **************************************************************************************************************************** 0.75 miles | |
| ************************************************************************************************************************* 1.0 miles | |
| *********************************************************************************************************** 1.25 miles | |
| ************************************************************************************************* 1.5 miles | |
| ************************************************************************************ 1.75 miles | |
| *************************************************************************** 2.0 miles | |
| ***************************************************************** 2.25 miles | |
| *********************************************************** 2.5 miles |
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
| ruby -rjson -ropen-uri -e 'last = - 1; while true; dollars=(JSON.parse(open("https://pledge.mayday.us/r/total").read)["totalCents"] - 100000000)/100; puts "$#{dollars} raised. $#{5000000-dollars} to go.#{last == -1 ? "" : " #{sprintf("%6s", "$"+(dollars-last).to_s)} in the last 60 seconds. #{"*" * ((dollars-last)/250.0).round}"}"; last = dollars; sleep 60 ; 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am mattb on github. | |
| * I am mattb (https://keybase.io/mattb) on keybase. | |
| * I have a public key whose fingerprint is 7BB0 E602 A356 DED9 D06D 694D 5A78 41CB AD19 4BE3 | |
| To claim this, I am signing this object: |
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
| 12514 - @tomcoates Tom Coates | |
| 12515 - @indranil Indranil Dasgupta | |
| 12517 - @Neil_Ford Neil Ford | |
| 12520 - @LittleRita Rita | |
| 12521 - @josephinesiew Josephine Phua | |
| 12522 - @cc_chapman C.C. Chapman | |
| 12523 - @KDAWG KRISTIN | |
| 12526 - @paul_howard Paul Howard | |
| 12527 - @pincushiontreat Melizza | |
| 12528 - @jw Josh Williams |
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
| 12500 - @phuly Phu | |
| 12501 - @mathie Graeme Mathieson | |
| 12502 - @BenJenkinson Ben Jenkinson | |
| 12503 - @martinsmith Martin Smith | |
| 12504 - @SteveMarshall Steve Marshall | |
| 12505 - @IcepickFIA Calum Heriot | |
| 12506 - @Marchdoe Doug March | |
| 12507 - @pixielauren Lauren | |
| 12508 - @willhowat Will Howat | |
| 12509 - @jiserra Juan Ignacio |