Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
function Thunk(fn) { | |
this.get = function() { | |
var v = fn(); | |
this.get = function() { return v }; | |
return v; | |
} | |
} | |
/* | |
* > var x = new Thunk(function() { console.log("working..."); return 2 * 2 * 2; }) |
'use strict'; | |
module.exports = function (grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// configurable paths | |
var yeomanConfig = { | |
app: 'app', | |
dist: 'dist' |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/usr/bin/env python | |
""" | |
This script scans the current working directory for changes to .go files and | |
runs `go test` in each folder where *_test.go files are found. It does this | |
indefinitely or until a KeyboardInterrupt is raised (<Ctrl+c>). This script | |
passes the verbosity command line argument (-v) to `go test`. | |
""" | |
#!/bin/bash | |
function deploy { | |
# Update the rsync target on the server | |
rsync \ | |
-av \ | |
--delete \ | |
--delete-excluded \ | |
$rsync_ignore_list_param \ | |
$rsync_source/ $target:$rsync_target |
http://kolodny.github.io/bookmarklet.html | |
document.body.addEventListener('click', go); | |
alert('click on a form element to get a bookmarklet of the saved form'); | |
function go(event) { | |
var form = event.target; | |
while (form && form.tagName !== 'FORM') { | |
form = form.parentNode; | |
} |