(Python & C++) code snippets meant to reduce work in the long run
second_smallest_element.py
: get second smallest element from a listparse_files/
: get all files in current working directory
argparse/
: parsing command-line arguments (influenced by Y. Kwon, KAIST EE)subvector.cpp
: creating subvectors from existing vectorxd-vector/
: 2D and 3Dstd::vector
without having to useboost::multi_array
(g++ -std=c++11
)aggregate-duplicates.cpp
: aggregating duplicate key elements from vector to have no duplicate key elements usingstd::map
(g++ -std=c++11
)concatenate-vectors.cpp
: aggregating multiple vectors into single vector (g++ -std=c++11
)
git-updater.sh
: saves commit with current date/time + message given:
e.g.,sh git-updater.sh "my message"
will result in something along the lines ofgit commit -m "1970.01.01 00:00:00 my message"
Copyright © Jinha Chung, KAIST School of Electrical Engineering