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/env python3 | |
| import math | |
| def is_power_of(n, b): | |
| # Outside domain of logarithm | |
| if n <= 0: | |
| return False | |
| # Determine power x to raise b to, to get n |
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
| autocmd BufEnter * colorscheme default | |
| " Syntax Highlighting for Shell files | |
| autocmd BufEnter *.sh colorscheme desert | |
| " Syntax Highlighting for C files | |
| autocmd BufEnter *.c colorscheme default | |
| autocmd BufEnter *.h colorscheme default | |
| " Syntax Highlighting for Java files |
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
| CXX = g++ | |
| CXXFLAGS = -std=c++11 -pedantic -Wall -Wextra -march=native | |
| DEBUGFLAGS = -O0 -ggdb3 -D DEBUG | |
| RELEASEFLAGS = -O2 | |
| TARGET = test-cmd | |
| SOURCES = $(shell find ./ -name *.cpp) | |
| HEADERS = $(shell find ./ -name *.h) | |
| OBJECTS = $(SOURCES:.cpp=.o) |