Skip to content

Instantly share code, notes, and snippets.

@linjackson78
linjackson78 / copyright_header_tool.py
Last active March 16, 2023 14:50
A python script to batch add copyright header to files.
@linjackson78
linjackson78 / combination.cpp
Created October 11, 2016 04:14
Given m and n, generate all combinations. Out put as indices vector.
#include <bitset>
class Combination {
public:
// Throw exception when either m or n is invalid.
// m should not be greater than 64, and n of course should be less than m.
void init(int m, int n) {
if (m > 64 || m < 0 || n > m || n <0) throw "Invalid m or n.";
this->m = m;
@linjackson78
linjackson78 / .gitignore
Last active August 29, 2015 14:27 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #