I hereby claim:
- I am krono on github.
- I am krono (https://keybase.io/krono) on keybase.
- I have a public key whose fingerprint is 5F8E 6A65 A617 6A07 B60A 8331 1957 A66A 08B5 F61C
To claim this, I am signing this object:
#!/bin/sh | |
PORT=22 | |
TIMEOUT=600 | |
for IPTABLE in iptables ip6tables; do | |
case "${IPTABLE}" in | |
iptables) LOCALHOST="127.0.0.1";; | |
ip6tables) LOCALHOST="::1";; | |
esac |
--- binarytrees-generic.rkt 2015-10-28 11:06:42.000000000 +0100 | |
+++ binarytrees-generic-boolean.rkt 2015-10-28 11:51:04.000000000 +0100 | |
@@ -14,15 +14,15 @@ | |
(define-syntax leaf? (make-rename-transformer #'*leaf?)) | |
(define-syntax node (make-rename-transformer #'*node)) | |
(define-syntax node? (make-rename-transformer #'*node?)) | |
-(define-syntax-rule (leaf-val l) (*leaf-val l)) | |
+(define-syntax-rule (leaf-val l) (if (*leaf-val l) 0 1)) | |
(define-syntax-rule (node-left n) (*node-left n)) | |
(define-syntax-rule (node-right n) (*node-right n)) |
[14:41:04]ζtobias@Claudio ± structs | |
~/dev/pypy/pycket % ./pycket-c binarytrees-generic-boolean.rkt 18 | |
stretch tree of depth 19 check: 1 | |
524288 trees of depth 4 check: 262144 | |
131072 trees of depth 6 check: 65536 | |
32768 trees of depth 8 check: 16384 | |
8192 trees of depth 10 check: 4096 | |
2048 trees of depth 12 check: 1024 | |
512 trees of depth 14 check: 256 | |
128 trees of depth 16 check: 64 |
struct {int foo;} snarfu; | |
/* | |
*/ | |
#define WRAP(x) x | |
/* | |
*/ | |
snarfu; | |
snarfu(); | |
WRAP(snarfu); | |
WRAP(snarfu()); |
#!/bin/sh | |
# this was done a long time ago | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install pypy | |
# use system python for virtualenv | |
sudo easy_install pip | |
# probably some updates here? |
Script started on Mon Aug 10 22:05:34 2015 | |
(B[m]0;pompompom/]7;file:///tmp/pompompom[1m[7m%[27m[1m[0m | |
[0m[27m[24m[J(B[m[38;5;196m(B[m[38;5;33m[22:05:35][38;5;165mζ(B[m[38;5;28mtobias[30m@[1m[38;5;28mclaudio [38;5;51m(B[m | |
[1m[38;5;255m/tmp/pompompom(B[m [1m[38;5;28m%(B[m [Kvvirtualenv -p pypy | |
Running virtualenv with interpreter /usr/local/bin/pypy | |
You must provide a DEST_DIR | |
Usage: virtualenv.py [OPTIONS] DEST_DIR |
~/dev/Dijkstra/jpg % ll $(which pypy) | |
lrwxr-xr-x 1 tobias admin 31 3 Jun 09:45 /usr/local/bin/pypy -> ../Cellar/pypy/2.6.0_1/bin/pypy | |
[21:47:38]ζtobias@Claudio | |
~/dev/Dijkstra/jpg % ll /usr/local/Cellar/pypy/2.6.0_1/ ll /usr/local/Cellar/pypy/2.6.0_1/bin/ | |
total 24 | |
lrwxr-xr-x 1 tobias admin 35 3 Jun 09:45 easy_install_pypy -> ../../../../share/pypy/easy_install | |
lrwxr-xr-x 1 tobias admin 26 3 Jun 09:45 pip_pypy -> ../../../../share/pypy/pip | |
lrwxr-xr-x 1 tobias admin 19 2 Jun 21:48 pypy -> ../libexec/bin/pypy | |
[21:47:50]ζtobias@Claudio | |
~/dev/Dijkstra/jpg % ll /usr/local/lib/libQtCLucene.4.8.7.dylill /usr/local/lib/libpypy-c.dylib |
I hereby claim:
To claim this, I am signing this object:
(Array streamContents: [:s | | |
(1 to: 998) do: [:x | | |
(1 to: 998) do: [ :y | | |
(1 to: 998) do: [:z | | |
((x+y+z) = 1000 and: [(x * x)+ (y*y) = (z*z)]) | |
ifTrue: [s nextPut: {x.y.z}]]]]]) | |
collect: [:a | [:x :y :z | x * y * z] valueWithArguments: a] |