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
| [05:29] ~/code/fs/2 $ rm -rf .pants.d .local_artifact_cache/[^I]* | |
| [05:29] ~/code/fs/2 $ time ./fs --pants-binary=../../pants/dist/pants.pex compile ads-api | |
| Writing log files to disk in /tmp/davidt/goals | |
| Begin: 2014-10-31 05:29:56.130135 | |
| Running: ../../pants/dist/pants.pex goal compile --compile-scala-missing-deps=fatal src/jvm/com/foursquare/ads/server/bin:foursquare.ads | |
| Writing log files to disk in /tmp/davidt/goals | |
| 05:29:57 00:00 [main] | |
| (To run a reporting server: ./pants goal server) | |
| 05:29:58 00:01 [bootstrap] |
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
| # Copyright 2014 Foursquare Labs Inc. All Rights Reserved. | |
| from pants.backend.core.tasks.task import Task | |
| class Tagger(Task): | |
| @classmethod | |
| def product_types(cls): | |
| return ['tagged_build_graph'] | |
| def execute(self): |
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 dt on github. | |
| * I am davidtaylor (https://keybase.io/davidtaylor) on keybase. | |
| * I have a public key whose fingerprint is C1C7 28C0 61A1 AF42 37E5 3469 769C 56D5 F1B4 6954 | |
| 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
| com | |
| foursquare | |
| foo | |
| client [fsthriftclient for 'foo'] | |
| server | |
| bin [main method(s) and concrete bag] | |
| concrete [implementation of services used in 'endpoint' or 'rpc'] | |
| endpoint | |
| json | |
| frontend [self-hosted/internal web pages] |
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
| scala> List(1, 2, 3).toSet() | |
| [[syntax trees at end of typer]] // <console> | |
| package $line3 { | |
| object $read extends scala.AnyRef { | |
| def <init>(): $line3.$read.type = { | |
| $read.super.<init>(); | |
| () | |
| }; | |
| object $iw extends scala.AnyRef { | |
| def <init>(): type = { |
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/bash | |
| echo 18 > /sys/class/gpio/export | |
| echo out > /sys/class/gpio/gpio18/direction | |
| echo 1 > /sys/class/gpio/gpio18/value | |
| LAST=`curl -s https://api-davidt-staging.foursquare.com/norep.id` | |
| echo "`date` starting up..." | |
| echo "`date` initial id: $LAST" | |
| killfile=/opt/watcher.kill |
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 java.io.*; | |
| import java.net.*; | |
| class UDPServer { | |
| public static void main(String args[]) throws Exception { | |
| if (args.length < 1) { | |
| System.out.println("usage: java UDPServer <port>"); | |
| } else { | |
| int listen = Integer.parseInt(args[0]); | |
| try { |
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/bash | |
| echo 18 > /sys/class/gpio/export | |
| echo out > /sys/class/gpio/gpio18/direction | |
| echo 1 > /sys/class/gpio/gpio18/value | |
| LAST=`curl -s https://api-davidtaylor-staging.foursquare.com/latest.id` | |
| echo 0 > /sys/class/gpio/gpio18/value | |
| sleep 2 | |
| echo 1 > /sys/class/gpio/gpio18/value | |
| echo "waiting..." |
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
| .Canvas_Blur canvas { | |
| display: none !important; | |
| } | |
| .Canvas_Blur { | |
| background-color: #ffffff !important; | |
| height: 91px; | |
| } | |
| .App_PlayerFooter { | |
| height: 70px !important; | |
| } |
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
| Hello, | |
| I'm sorry about the problem you had with the delivery of your order. I understand the inconvenience on your part and this is definitely not what we want for our customer to experience. | |
| I want to make things right for you so I've forwarded your feedback about USPS to our shipping department--I know they'll want to hear about your experience. We're aware that our choice of delivery services reflects on our business as a whole, and we appreciate your feedback. | |
| Further, I want to compensate for this; so in case you'll place another order from our website, please have it via One Day Shipping and we will waive the shipping cost. Please make sure that the item is sold and shipped by Amazon or at least Fulfilled-by-Amazon. | |
| One of our aims at Amazon.com is to provide a convenient and efficient service; in this case, we haven't met that standard. I'm truly sorry, and I hope you'll give us another chance in the future. |