View ics2tc.awk
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
function parse(dt) | |
{ | |
Y = substr(dt, 1, 4); | |
M = substr(dt, 5, 2); | |
D = substr(dt, 7, 2); | |
h = substr(dt, 10, 2); | |
m = substr(dt, 12, 2); | |
s = substr(dt, 14, 2); | |
return Y "/" M "/" D " " h ":" m ":" s; |
View Makefile
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
RIPPLE_LIB = node_modules/ripple-lib/package.json | |
all: hedge.js $(RIPPLE_LIB) | |
node hedge | tee latest.log | tee -a full.log | |
if grep -q "Offers submitted" latest.log; then \ | |
$(MAKE) email; \ | |
$(MAKE) trips; \ | |
fi | |
$(RIPPLE_LIB): |
View rippled.cfg
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
[server] | |
port_rpc_admin_local | |
port_peer | |
[port_rpc_admin_local] | |
port = 5005 | |
ip = 127.0.0.1 | |
admin = 127.0.0.1 | |
protocol = http |
View Makefile
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
URL = http://api.bitcoincharts.com/v1/csv/bitstampUSD.csv.gz | |
all: result.txt | |
time -p node simulate.js prices.json 0.25 9 | |
result.txt: prices.json | |
time -p node optimize.js $< 100000 >|$@ | |
prices.json: csv.gz | |
zcat $< | awk -F , -f zigzag.awk >|$@ |
View Makefile
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
all: | |
node work2mlc.js getwork.json 381353fa >test.mlc | |
lambda -pem lib.mlc -f test.mlc | |
clean: |
View Makefile
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
all: | |
npm install | |
time -p node generate.js 1 8 >terms.txt | |
time -p node compute.js abstract 250 1 5 >abstract.tsv | |
clean: | |
-rm -fr node_modules | |
-rm -f abstract.tsv terms.txt |
View Makefile
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
all: | |
bc fibo.bc <test.bc | |
echo 'fibo(123456)' | time -p bc fibo.bc >output.txt | |
cmp output.txt expected.txt | |
echo 'fibo(123456)' | time -p bc naive.bc >output.txt | |
cmp output.txt expected.txt | |
rm -f output.txt | |
clean: | |
-rm -f output.txt |
View logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Makefile
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
NEXT = openssl rsautl -decrypt -inkey key -raw | |
all: key | |
openssl dgst -sha -out id -sign key key | |
openssl dgst -sha -signature id -prverify key key | |
while sleep 1; do \ | |
openssl base64 -in id; \ | |
$(NEXT) -in id -out next; \ | |
mv next id; \ |
View Makefile
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
LOGFILE = $$HOME/.bitstamp.log | |
all: | |
-while date; do \ | |
$(MAKE) trace; \ | |
sleep 60; \ | |
done | |
trace: | |
sed -n -f log2json.sed $(LOGFILE) >spyhedge.json |
NewerOlder