Instantly share code, notes, and snippets.

🏠
Programando!!

# Edwin Rodríguezedwrodrig

🏠
Programando!!
• Instituto Milenio de Oceanografía
• Concepción, Chile
• Sort options
Last active Aug 29, 2015
Insertion sort using vector
View insertion_sort_vector.cpp
 #include #include using namespace std; void print_v(const vector& v) { for ( vector::const_iterator i = v.begin() ; i != v.end() ; ++i ) cout << *i << " "; cout << endl; }
Created Mar 2, 2014
Merge two sorted arrays
View merge.cpp
 #include using namespace std; int main() { //int a1[5] = {1,3,5,7,9}; //int a2[5] = {0,2,4,6,8}; //int a1[5] = {1,2,3,4,5}; //int a2[5] = {6,7,8,9,10};
Created May 5, 2014
Social meta tags
View meta.html

Last active Aug 29, 2015
Usage demo of pitri.js
View pitri_angles.html

Last active Aug 29, 2015
Scripts to convert qt3 files to qt4
View qt3to4.sh
 for file in *.ui do filename="\${file%.*}" uic3 "\$filename".ui > "\$filename"4.h uic3 -impl "\$filename"4.h "\$filename".ui > "\$filename"4.cpp done
Last active Aug 29, 2015
clustering
View clustering
 elems[] = [elem1, elem2, elem3, ..., elemn]; distances[][]; foreach (i < elems.size ) { foreach ( j < elems.size ) { distance[i][j] = distance(elem[i], elem[j]); // not all distances are needed, just triangle due distance conmuyativity } }
Created May 24, 2014