Skip to content

Instantly share code, notes, and snippets.

natrim /
Last active Jul 29, 2022
Simple conversion script that converts Godot html5 export to gzipped version, with decompressing wasm and pck files using pako
### usage ./ game
## where game is baseName of the export
if [ ! "$1" ]; then
read -p 'Game name: ' game
sheershoff / dcsl
Last active Sep 10, 2019
Docker-compose logs sorted by time
View dcsl
usage="Input piped docker-compose logs -t, or a file created from this command, to show logs lines sorted by time.\n\n Usage:\n\n $(basename "$0") [-h|--help] - this message\n $(basename "$0") - runs default docker-compose logs -t and sorts'em\n docker-compose logs -t|$(basename "$0") - pipe logs to this command\n $(basename "$0") my-compose.log - or choose file with logs to display\n\n"
[ $# -ge 1 -a -f "$1" ] && input="$1" || input="-"
case "$1" in
-h|--help) printf "$usage"
if [ -t 0 ]; then
docker-compose logs -t|sort -t "|" -k +2d
lambdahands /
Created Sep 28, 2015
FlowType and CSS Modules


So basically FlowType doesn't know about CSS Modules, a really handy way of dealing with the plagues of CSS in codebases (global variables and dependency wackiness mainly).

What WebPack allows us to do is "require" CSS files and use their class names:

import styles from "my_styles.css";
import React from "react";