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
| import argparse | |
| import os | |
| import re | |
| help = """For example, to insert content of copyright.txt into .h and .m files under src/ and headers/ dir, | |
| you may run: python copyright_header_tool.py copyright.txt ./src ./headers --pattern='.*\.[h,m]$' """ | |
| parser = argparse.ArgumentParser(description="File header tools.", | |
| epilog=help) |
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 <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; |
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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |