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
| (defn factorial[number] | |
| (letfn [(tail-recursive-factorial[count number] | |
| (if (= number 0) | |
| count | |
| (tail-recursive-factorial (* count number) (- number 1))))] | |
| (tail-recursive-factorial 1 number))) | |
| (factorial 5) | |
| (defn factorial[number] |
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
| for folder in {090..104}; do cd $folder; files=($(exiftool -q -if '$Rating eq 5' *.JPG -p '$FileName')); for f in ${files[@]}; do convert ${f} -resize 1900 ~/pictures/resized/$folder"-"$(exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '_' | sed 's/+00:00//' | sed 's/\:/./g').JPG; done; cd ..; done; |
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
| @interface SomethingViewController() | |
| @end |
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
| curl -v -H "Content-type: application/json" -X POST http://localhost:8080/ibeacons/notifications -d '{ "userId": 1, "time": "2014-03-01T17:03:13Z" }' |
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
| date --iso-8601='seconds' |
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
| for f in *.MTS; do filename=$(basename $f .MTS); new_filename=$(exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '_' | sed 's/+00:00//'); touch -r $f $filename.mp4; mv $filename.mp4 $new_filename.mp4; done |
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
| android create project -g -v 0.7.3 -t 1 -n FirstAndroidApp -p first_android_app -a MainActivity -k com.threewisemonkeysdevelopment.androi |
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
| IFS=$'\n'; for d in `find * -maxdepth 0 -type d`; do git -C $d pull --rebase; done |
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
| IFS=$'\n' | |
| for f in `find *.MTS`; do ffmpeg -i $f -r 30 -strict -2 -async 1 -acodec aac -ac 2 -ab 160k -threads 0 -preset slower -profile:v high -level 4.1 -f mp4 -refs 4 $(basename $f .MTS).mp4; done |
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
| ffmpeg -i 00091.MTS -r 30 -strict -2 -async 1 -acodec aac -ac 2 -ab 160k -threads 0 -preset slower -profile:v high -level 4.1 -f mp4 -refs 4 ~/videos/conversions/00091.mp4 |