This file contains 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
#!/bin/bash | |
n_threads=1 | |
if ! [ -x "$(command -v dcraw_emu)" ]; then | |
echo "error: dcraw_emu does not exist (ubuntu: apt install libraw-bin)" | |
exit 1 | |
fi | |
while getopts "hn:" opt; do |
This file contains 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 sys, re | |
class T: | |
def __init__(self, text): self.curr = 0; self.txt = text.splitlines(True) | |
def at(self, i): return self.txt[i] if i < len(self.txt) else None | |
def peek(self): return self.at(self.curr) | |
def next(self): self.curr += 1; return self.at(self.curr - 1) | |
def d_start(l): return re.search(r"^\/\*\*\s*(\w*)", l) | |
def d_end(l): return re.search(r"^ \*\/", l) if l else True |
This file contains 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
#======================================================================================================================# | |
# CONFIG | |
#======================================================================================================================# | |
#---- BASIC -----------------------------------------------------------------------------------------------------------# | |
EXECUTABLE := | |
LIBS := | |
FLAGS := -Wall -Wno-missing-braces | |
DEFS := |