I hereby claim:
- I am ykarikos on github.
- I am ykk (https://keybase.io/ykk) on keybase.
- I have a public key whose fingerprint is 2E71 56C3 7760 E735 B175 E053 0E4E A201 3B3A BE42
To claim this, I am signing this object:
| (use '[clojure.java.shell :only [sh]]) | |
| (defn say [& args] (apply sh "say" args)) | |
| (defn say-and-print [n] | |
| (let [n-str (str n)] | |
| (println n-str) | |
| (Thread/sleep 2000) | |
| (say n-str))) |
I hereby claim:
To claim this, I am signing this object:
| MASTER=a.iana-servers.net.; DOMAIN=example.com.; dig +short -t NS $DOMAIN @$MASTER |sort >/tmp/$MASTER; for h in `cat /tmp/$MASTER`; do echo - Querying $h:; dig +short -t NS $DOMAIN @$h |sort |diff /tmp/$MASTER -; done |
| user=> (def mymap {:foo 1 :bar {:subfirst 1.2 :subsecond "foo"}}) | |
| #'user/mymap | |
| user=> (:foo mymap) | |
| 1 | |
| user=> (mymap :bar) | |
| {:subfirst 1.2, :subsecond "foo"} | |
| user=> (-> mymap :bar :subsecond) | |
| "foo" |
What I had:
What I wanted:
Here's some remarks I've made while living in Munich, Germany (vs. in Finland). I made a similar list in 2004 in Austria.
Here we go.
o_ODenglisch words I hear while living and working in Germany
| // What does each logging statement print, why? | |
| var x = 1; | |
| console.log(x); | |
| if(1) { | |
| var x = 2; | |
| console.log(x); | |
| } | |
| console.log(x); |
| #!/usr/bin/perl -w | |
| # Rename video files with a ISO date prefix, e.g. | |
| # rename from P12345.MOV to 2018-01-30.P12345.MOV | |
| # Tested with MTS, 3GP and MOV files. | |
| # | |
| # (c) 2018 Yrjö Kari-Koskinen <ykk@peruna.fi> | |
| # Licensed with the MIT License | |
| use Image::ExifTool qw(:Public); |
| mkdir spin | |
| for angle in `seq 360 30 690`; do gm convert original.jpg -background "#FFFFFF" -rotate $angle -crop 512x512+0+0 spin/$angle.png; done | |
| cd spin | |
| gm convert *.png -loop 0 -delay 20 spinningfoobar.gif |