This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://www.youtube.com/iframe_api"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="revealElement" title="Klik hier"> | |
extra inhoud | |
</div> | |
... zorgt voor ... | |
<a href="#">Klik hier</a> | |
<div class="revealElement" title="Klik hier"> | |
extra inhoud | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<script> | |
var EenClosure = (function() { | |
// Private | |
var foo = 'bar'; | |
var otherThing = function() { | |
// This contains the window object because it is the owner of this function. | |
console.dir(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ alias ant-watch='cd build && when-changed/when-changed.py ../applications/*.js ../applications/**/*.js ../applications/**/**/*.js ../applications/**/**/**/*.js ../applications/**/**/**/**/*.js -c ant dev' | |
$ ant-watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get Tumblr feed | |
$('#blog').funnel({ | |
"services": [{ | |
"name": "tumblr", | |
"user": "jeromche", | |
"tmpl": { | |
"regular": "#tmpl_tumblr_regular", | |
"photo": "#tmpl_tumblr_photo", | |
"video": "#tmpl_tumblr_video", | |
"quote": "#tmpl_tumblr_quote" |