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
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
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
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
@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
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
(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
import java.util.stream.IntStream; | |
public class Factorials { | |
public static void main(String[] args) { | |
Integer input = Integer.valueOf(args[0]); | |
System.out.printf("factorial of %d (v7) = %d\n", input, version7(input)); | |
System.out.printf("factorial of %d (v8) = %d\n", input, version8(input)); | |
System.out.printf("factorial of %d (recursive) = %d\n", input, recursive(input)); |
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
(def sum [& args].... |
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
[& args] - varargs | |
:require - refer to other clojure namespaces | |
:import - import java classes |