Skip to content

Instantly share code, notes, and snippets.

# Make a gnome chroot
sudo sh ~/Downloads/crouton -n gnome -t xiwi,cli-extra,chrome,extension,gnome
# To get the most recent version add a PPA (personal package archive) maintained by NodeSource
cd ~
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
# Install node and npm
sudo apt-get install nodejs
@dataslask
dataslask / my-validate.js
Last active June 1, 2016 10:44
Provides validation messages and styling with AngularJS and Bootstrap.
/*
Provides validation messages and styling with AngularJS and Bootstrap.
Example usage:
<div class="form-group" my-validate="My validation message">
<label class="control-label" for="copies">Copies:</label>
<input id="copies" name="copies" type="number" class="form-control" required min="1" ng-model="copies" />
</div>