Skip to content

Instantly share code, notes, and snippets.

View emilniklas's full-sized avatar

Emil Broman emilniklas

View GitHub Profile
@emilniklas
emilniklas / gangsta.js
Created April 10, 2015 12:42
Gangsta translate
function gangstaEncode(normal)
{
return input.replace(/([bcdfghjklmnpqrstvwxz])/ig, function (all, $1)
{
return $1 + 'o' + $1.toLowerCase();
});
}
function gangstaDecode(gangsta)
{
@emilniklas
emilniklas / gulpfile.js
Last active August 23, 2017 13:16
Gulpfile with LiveReload, Sass, and Browserify with Babelify (JSX harmony)
// ============================================================
// $ npm install --save-dev gulp-util node-notifier gulp vinyl-source-stream vinyl-buffer gulp-uglify gulp-sourcemaps gulp-livereload browserify watchify babelify gulp-ruby-sass gulp-autoprefixer gulp-rename
// ============================================================
function Workflow()
{
// Override workflow settings here
// Example:
// this.output.directory = 'public_html';