Skip to content

Instantly share code, notes, and snippets.

:: Installation
:: ------------
::
:: 1. Add this to the same directory as the Google Closure Compiler jar
:: 2. Add that directory to your Windows PATH environment variable
::
:: Then simply run the compiler, for example:
::
:: compiler --js input.js --js_output_file output.min.js
::
// Boring
if (isThisAwesome) {
alert('yes'); // it's not
}
// Awesome
isThisAwesome && alert('yes');
// Also cool for guarding your code
var aCoolFunction = undefined;
@jervert
jervert / APPNAME
Created December 19, 2013 13:14 — forked from eculver/APPNAME
#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28