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
** BOOTSTRAP COMMANDS ** | |
knife bootstrap FQDN (options) | |
** CLIENT COMMANDS ** | |
knife client bulk delete REGEX (options) | |
knife client create CLIENT (options) | |
knife client delete CLIENT (options) | |
knife client edit CLIENT (options) | |
knife client list (options) | |
knife client reregister CLIENT (options) |
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
$ which easy_install | |
$ /usr/bin/easy_install pip | |
$ sudo /usr/bin/easy_install pip | |
$ pip install pyflakes | |
$ sudo pip install pyflakes | |
$ sudo pip install pep8 | |
$ pyflakes test.py | |
$ pep8 test.py |
You are one of the first people to use GitHub's new text editor! Here is what you need to know.
-
Atom is free during the beta period.
-
If you only remember one thing make it
cmd-shift-P
. This keystroke toggles the command palette, which lists every Atom command. Yes, you can try it now! Presscmd-shift-P
, typemarkdown
and press enter. It will trigger the
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
$ brew install python | |
$ brew link python | |
$ pip install numpy | |
$ brew tap homebrew/science | |
$ brew install opencv | |
$vim .zprofile | |
>> export PYTHONPATH=/usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages:$PYTHONPATH | |
+ check >> |
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
<?php | |
$url = "http://31.media.tumblr.com/tumblr_mc4u6lwZHr1qf4k86o1_500.jpg"; | |
$img_string = file_get_contents($url); | |
$img_data = imagecreatefromstring($img_string); | |
// make color | |
$gd = imagecreatetruecolor(1,1); | |
$red = imagecolorallocate($gd, 255, 0, 0); | |
// drawing |
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
''' | |
usage: | |
python show_camera_or_video.py | |
or | |
python show_camera_or_video.py cam | |
or | |
python show_camera_or_video.py inputfilename.avi | |
''' | |
import numpy as np |
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 cv2 | |
# built-in module | |
import sys | |
if __name__ == '__main__': | |
print __doc__ | |
try: |
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
[ 67%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_core.cpp.o | |
[ 67%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_warp_affine.cpp.o | |
[ 67%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_resize.cpp.o | |
[ 67%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_remap.cpp.o | |
[ 67%] Building CXX object modules/gpu/CMakeFiles/opencv_test_gpu.dir/test/test_hough.cpp.o | |
Linking CXX executable ../../bin/opencv_test_gpu | |
[ 67%] Built target opencv_test_gpu | |
[ 67%] Generating opencv_ocl_pch_dephelp.cxx | |
Scanning dependencies of target opencv_ocl_pch_dephelp | |
[ 67%] Building CXX object modules/ocl/CMakeFiles/opencv_ocl_pch_dephelp.dir/opencv_ocl_pch_dephelp.cxx.o |
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
<?php | |
$size = getimagesize('http://free-photos-ls01.gatag.net/images/lgf01a201304271400.jpg'); | |
var_export($size); | |
/* output | |
array ( | |
0 => 1024, | |
1 => 768, | |
2 => 2, | |
3 => 'width="1024" height="768"', |
OlderNewer