Skip to content

Instantly share code, notes, and snippets.

Peace for Mozambique!

Helder Oliveira heldrida

Peace for Mozambique!
View GitHub Profile
staltz /
Last active Jan 21, 2021
The introduction to Reactive Programming you've been missing
View 01-gulpfile.js
* gulp
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
cssnano = require('gulp-cssnano'),
View MasonryWall.Directive.js
define(['angular', 'masonry', 'imagesLoaded', 'lodash'], function(angular, Masonry, imagesLoaded, _){
'use strict';
* Masonry Directive for a wall of item.
* This directive is intended to be used along with ng-repeat directive.
* Put masonryWallDir on the container element and pass in a class selector for each item to be laid out.
* Pass in optional options via masonryWallOptions.
* Put the masonryItemDir next to ng-repeat directive on the item to be repeated.
UtahDave / saltsample_09252012_01
Created Sep 26, 2012 — forked from l2ol33rt/saltsample_09252012_01
Saltstack sample of using states and pillars for users
View saltsample_09252012_01
Here is a sample of how I am currently dealing with users.
Big thanks to uggedal! I used his user states as an example:
# How to create password hashes
python -c "import crypt; print crypt.crypt('password', '\$6\$SALTsalt\$')"
isaacs /
Last active Jan 21, 2021
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh