gem install rails --pre
rails new my_app -T
| #include <stdio.h> | |
| #include <iostream> | |
| using namespace std; | |
| #include "opencv2/core/core.hpp" | |
| #include "opencv2/features2d/features2d.hpp" | |
| #include "opencv2/nonfree/features2d.hpp" | |
| #include "opencv2/highgui/highgui.hpp" | |
| #include "opencv2/nonfree/nonfree.hpp" | |
| using namespace cv; |
| #!/usr/bin/sh | |
| set -e | |
| sudo apt-get install openjdk-7-jdk git-core wget -y # Ubuntu 12.04 meets no problem | |
| wget --no-check-certificate -O ~/bin/lein https://raw.github.com/technomancy/leiningen/preview/bin/lein | |
| chmod 755 ~/bin/lein | |
| # Add ~/bin to your $PATH, it has been done if in Ubuntu 12.04 | |
| lein # the first time it will install itself |
| grep -rl 'Constant::' ./ | xargs sed -i 's/Constant::\(\w\+\)/\1Constant/g' |