Basic,
\
redcarpet content.md | # 1. Parse markdown
mustache - data.yaml.mustache | # 2. Save as unescaped HTML in proxy template
mustache - layout.mustache | # 3. Fill in page layout
tidy # 4. Fix indentation
find ./*.jpg -exec sh -c 'touch -d $$(date -j -f "%Y:%m:%d %H:%M:%S" "$$(identify -format "%[EXIF:DateTimeOriginal]" {})" +%Y-%m-%dT%H:%M:%S) {}' \; |
export function crc32c(data, n = data.length, poly = 0xEDB88320) { | |
let crc = 0xFFFFFFFF | |
for (let i = 0; i < n; i += 1) { | |
crc = crc ^ data.charCodeAt(i) | |
for (let j = 0; j < 8; j += 1) { | |
crc = crc & 1 ? (crc >>> 1) ^ poly : crc >>> 1 | |
} | |
} |
build: | |
@mkdir $$(date +"%Y%m%d%s"); cd $$_; echo "$$(date +"%Y%m%d%s")" > index.html; zip ../"$$(date +"%Y%m%d%s")".zip -r . |
# The filenaming timestamp | |
D?=$$(date +"%Y%m%d%s") | |
# Pix or bitmap dimensions | |
W?=80 | |
H?=45 | |
# How many numbers total? | |
S?=$$(bc <<< "3 * $W * $H") | |
# How many samples? | |
G?=$$(bc <<< "3 * $H") | |
# Out image dimensions |
# The filenaming timestamp | |
D?=$$(date +"%Y%m%d%s") | |
# How many feature points? | |
R?=10 | |
# Pixmap dimensions | |
W?=80 | |
H?=45 | |
# How many pixels? | |
S?=$$(($W * $H - 1)) | |
# Out image dimensions |
YEAR?=$$(date +%Y) | |
UUID?=$$(python -c "import uuid; print(uuid.uuid4())") | |
ITEM?=justmoreidlechatternot | |
BOOM?=$(notdir $(CURDIR)) | |
SHOW?=WA | |
NAME?=$$(date +%Y%m%d%s) | |
run: get cut mp3 put | |
@rm -rf episode.mp3 *.wav | |
put: |
# The filenaming timestamp | |
D?=$$(date +"%Y%m%d%s") | |
# Pixmap dimensions | |
W?=64 | |
H?=64 | |
# How many pixels? | |
S?=$$(($W * $H - 1)) | |
# Out image dimensions | |
w?=192 | |
h?=192 |