Skip to content

Instantly share code, notes, and snippets.

@docteurklein
docteurklein / extract.sh
Created December 2, 2011 16:43
extract non translated sentences in twig templates
find . -type f -name "*.html.twig" | xargs perl -pi -e "s/>([^\s<{>].*?)</>{{ '\1'|trans }}</g"
@mishoo
mishoo / ugly-diff.sh
Created September 8, 2012 20:01
ugly-diff
#! /bin/sh
uglifyjs -v -b -nm -ns -nc $1 > /tmp/ugly-diff-1
uglifyjs -v -b -nm -ns -nc $2 > /tmp/ugly-diff-2
diff /tmp/ugly-diff-1 /tmp/ugly-diff-2 | colordiff | less -R
@gre
gre / README.md
Last active November 12, 2021 15:20
Boilerplate of a JS1K submission + JSCrush & uglify tools

JS1K Boilerplate

Build tools

Install tools

npm install