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
ls tap1/*.jpg | sort -t- -nk2,2 | tr '\n' ' ' | sed 's/$/\ tap1.pdf/' | xargs convert |
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
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE | |
1 Raw_Read_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0 | |
2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline - 0 | |
3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always - 11769 | |
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 18 | |
5 Reallocated_Sector_Ct 0x0033 100 100 050 Pre-fail Always - 0 | |
7 Seek_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0 | |
8 Seek_Time_Performance 0x0005 100 100 050 Pre-fail Offline - 0 | |
9 Power_On_Hours 0x0032 097 097 000 Old_age Always - 1512 | |
10 Spin_Retry_Count 0x0033 100 100 030 Pre-fail Always - 0 |
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
dd bs=4M if=2014-09-09-wheezy-raspbian.img | pv | dd of=/dev/mmcblk0 |
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
Stevens-MBP:src stevenvo$ python recognize_faces.py | |
../data/training/01-Tracy-Cropped | |
../data/training/02-Trish-Cropped | |
../data/training/03-Steven-Cropped | |
Traceback (most recent call last): | |
File "recognize_faces.py", line 51, in <module> | |
generate_eigenfaces() | |
File "recognize_faces.py", line 45, in generate_eigenfaces | |
compute_pca(X_train, y_train) | |
File "recognize_faces.py", line 37, in compute_pca |
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
# sort array with regards to nth column | |
arr = arr[arr[:,n].argsort()] |
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
$ python recognize_faces.py | |
======LOAD TRAINING DATA======= | |
- Mode, id, name, total images: training, 01, Tracy, 162 | |
- Mode, id, name, total images: training, 02, Trish, 68 | |
- Mode, id, name, total images: training, 03, Steven, 64 | |
======LOAD TESTING DATA======= | |
- Mode, id, name, total images: testing, 00, friends, 0 | |
- Mode, id, name, total images: testing, 01, Tracy, 28 |
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
#!/bin/bash | |
# https://github.com/jomo/imgur-screenshot | |
# https://imgur.com/apps | |
current_version="v1.5.4" | |
function is_mac() { | |
uname | grep -q "Darwin" | |
} |
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
$ security find-generic-password -ga "YourWifiNameHere" | grep "password:" |
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
body {counter-reset: h2} | |
h2 {counter-reset: h3} | |
h3 {counter-reset: h4} | |
h4 {counter-reset: h5} | |
h5 {counter-reset: h6} | |
h2:before {counter-increment: h2; content: counter(h2) ". "} | |
h3:before {counter-increment: h3; content: counter(h2) "." counter(h3) ". "} | |
h4:before {counter-increment: h4; content: counter(h2) "." counter(h3) "." counter(h4) ". "} | |
h5:before {counter-increment: h5; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "} | |
h6:before {counter-increment: h6; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer