Skip to content

Instantly share code, notes, and snippets.

Working from home

Jeroen van der Tuin Jeromche

View GitHub Profile
Jeromche / watchify.js
Last active Aug 29, 2015
Browserify/Watchify Gulp task with Underscorify and error logging with Gulp Util
View watchify.js
var gulp = require('gulp');
var browserify = require('browserify');
var watchify = require('watchify');
var underscorify = require('node-underscorify');
var source = require('vinyl-source-stream');
var gutil = require('gulp-util');
* Writes a Browserify or Watchify bundle to file.
Jeromche / index.html
Created Apr 5, 2014
A Pen by Jeroen van der Tuin.
View index.html
<script src=""></script>
View eerst.html
<div class="revealElement" title="Klik hier">
extra inhoud
... zorgt voor ...
<a href="#">Klik hier</a>
<div class="revealElement" title="Klik hier">
extra inhoud
Jeromche / gist:5629162
Last active Dec 17, 2015
Closures in JS
View gist:5629162
<!doctype html>
var EenClosure = (function() {
// Private
var foo = 'bar';
var otherThing = function() {
// This contains the window object because it is the owner of this function.
View gist:5558786
$ alias ant-watch='cd build && when-changed/ ../applications/*.js ../applications/**/*.js ../applications/**/**/*.js ../applications/**/**/**/*.js ../applications/**/**/**/**/*.js -c ant dev'
$ ant-watch
Jeromche / pasz.js
Created Jan 10, 2012
Bare jQuery plugin using revealing module pattern
View pasz.js
* Minimum set up for a revealing module pattern jQuery plugin
* This is a bare plugin that uses the revealing module pattern to attach
* public and private vars and methods to a jQuery selector.
* Example:
* $('#menu').collapsible().init();
* $('#menu').collapsible().open();
Jeromche / tumblr.js
Created Jul 21, 2011
Funnel example with Tumblr feed
View tumblr.js
// Get Tumblr feed
"services": [{
"name": "tumblr",
"user": "jeromche",
"tmpl": {
"regular": "#tmpl_tumblr_regular",
"photo": "#tmpl_tumblr_photo",
"video": "#tmpl_tumblr_video",
"quote": "#tmpl_tumblr_quote"
You can’t perform that action at this time.