This file contains 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
find . -name '*.java' | grep -v "\/target\/" | grep java | rev | cut -f "2-" -d "/" | rev | sort | uniq | xargs -I{} sh -c 'echo "$1" | grep -o "java\/.*" | cut -f "2-" -d "/" | tr "/" "." | awk '"'"'{print "package "$1";"}'"'"' > "$1/package-info.java" ' -- {} | |
git status | grep package-info | xargs -I{} sh -c 'echo "@javax.annotation.ParametersAreNonnullByDefault" | cat - "$1" > /tmp/tttt ; mv /tmp/tttt "$1"' -- {} |
This file contains 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
[$] curl --verbose --silent --http1.0 --keepalive --header Connection: keep-alive --request POST https://groupon.com/api/auth?token=INCORRECT_very_very_secret_key --data [email protected]&password=password | |
* Trying 100.100.100.100... | |
* TCP_NODELAY set | |
* Connected to groupon.com (100.100.100.100) port 80 (#0) | |
> POST /api/auth?token=INCORRECT_very_very_secret_key HTTP/1.0 | |
> Host: groupon.com | |
> User-Agent: curl/7.54.0 | |
> Accept: */* | |
> Connection: keep-alive |
This file contains 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/sh | |
# build.sh | |
GLOBAL_OUTDIR="`pwd`/dependencies" | |
LOCAL_OUTDIR="./outdir" | |
LEPTON_LIB="`pwd`/leptonica-1.69" | |
TESSERACT_LIB="`pwd`/tesseract-3.01" | |
IOS_BASE_SDK="6.0" | |
IOS_DEPLOY_TGT="5.1" |
This file contains 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
coords = ( | |
(41.2863,-73.78689), | |
(41.2864,-73.78690), | |
(41.2869,-73.78698), | |
) | |
from math import floor | |
def gen_hash(coords): | |
pro_lat = floor(coords[0]*1000.0) |