This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| https://www.dropbox.com/sh/dw5hpid9lx00thv/AADqyLQwtAZXa09DKzIHbtpGa?dl=0 |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| #!/bin/bash | |
| brew tap homebrew/science | |
| brew install opencv | |
| # add symlink for a virtualenv `venv` | |
| cd venv/lib/python2.7/site-packages/ | |
| ln -s /usr/local/Cellar/opencv/2.4.13_3/lib/python2.7/site-packages/cv.py cv.py | |
| ln -s /usr/local/Cellar/opencv/2.4.13_3/lib/python2.7/site-packages/cv2.so cv2.so |
| #include <direct.h> | |
| #include <stdio.h> | |
| char currentPath[100]; | |
| if (!GetCurrentDir(currentPath, sizeof(currentPath))) { | |
| printf("Get working directory failed.\n"); | |
| } else { | |
| printf("The current working directory is %s", currentPath); | |
| } |