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
| #include <cstdio> | |
| int main(int argc, char** argv, char** envp) | |
| { | |
| for(char** env = envp; *env != 0; env++) | |
| { | |
| char* currentEnv = *env; | |
| printf("%s\n", currentEnv); | |
| } | |
| return 0; |
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
| #! /usr/bin/python | |
| import csv | |
| print ("Loading list...") | |
| basicsFp = open('basics.tsv') | |
| ratingsFp = open('ratings.tsv') | |
| basicsReader = csv.reader(basicsFp, delimiter='\t') |
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
| #! /usr/bin/python | |
| import csv | |
| basicsFp = open('basics.tsv') | |
| ratingsFp = open('ratings.tsv') | |
| basicsReader = csv.reader(basicsFp, delimiter='\t') | |
| ratingsReader = csv.reader(ratingsFp, delimiter='\t') |
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
| float directionDistance(cv::Mat& img, cv::Point center, float angle) | |
| { | |
| angle = (M_PI * angle) / 180; | |
| int x0 = center.x; | |
| int y0 = center.y; | |
| int x1 = center.x + 1000 * cos(angle); | |
| int y1 = center.y + 1000 * sin(angle); | |
| //std::cout << "[" << x0 << " " << y0 << "][" << x1 << " " << y1 << "]" << std::endl; |
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
| all: | |
| g++ morph_descriptor.cpp -o MorphDescriptor -lao -lopencv_core -lopencv_highgui -lopencv_imgproc |
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
| all: | |
| g++ main.cpp -o Main -lopencv_core -lopencv_highgui -lopencv_imgproc |
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
| all: | |
| g++ apply_flir_palette.cpp -o Main -lopencv_core -lopencv_highgui -lopencv_imgproc |
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
| #include <iostream> | |
| #include <vector> | |
| #include <memory> | |
| #include <boost/shared_ptr.hpp> | |
| #include <boost/python.hpp> | |
| #include <boost/python/stl_iterator.hpp> | |
| #include <Python.h> | |
| template<typename T> inline std::vector<T> pyListToStdVector(const boost::python::object& iterable) | |
| { |
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
| char findUnique(std::string str) | |
| { | |
| std::vector<int> data(256, 0); | |
| std::vector<int> firstPos(256, -1); | |
| for(int i = 0; i < (int)str.size(); i++) | |
| { | |
| int currentChar = (int)str[i]; | |
| if(data[currentChar] == 0) | |
| { |
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 | |
| header('Content-type: image/png'); | |
| $urlBegin = 'https://4.aerial.maps.api.here.com/maptile/2.1/maptile/d1700f0f76/hybrid.day'; | |
| $x = $_GET['x']; | |
| $y = $_GET['y']; | |
| $z = $_GET['z']; | |
| $urlEnd = '/512/png8?app_id=VgTVFr1a0ft1qGcLCVJ6&app_code=LJXqQ8ErW71UsRUK3R33Ow&lg=eng&ppi=72&pview=DEF'; |