The official and authoritative source for this document has moved. Please update your bookmarks.
You can still use the comments at the bottom of the page to register comments even for the new official location.
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
#!/bin/sh | |
# Use BeyondCompare as difftool for git in cygwin. | |
# git config --global difftool.bc3.cmd "beyondcompare-diff.sh \"\$LOCAL\" \"\$REMOTE\"" | |
# git difftool -t bc3 branch1..branch2 | |
# Reference: http://www.tldp.org/LDP/abs/abs-guide.pdf | |
library=githelperfunctions.sh | |
#[ -f $library ] && . $library |
/*\ | |
* Basic Queueing | |
\*/ | |
function Queue () { | |
return { | |
add: function(fn) { | |
var s = this._stack | |
if (typeof fn == "function") { | |
s.push(fn) |
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |
The official and authoritative source for this document has moved. Please update your bookmarks.
You can still use the comments at the bottom of the page to register comments even for the new official location.
foo | |
( | |
function( ) { | |
return bar( | |
'foo' ) ; | |
}, | |
function | |
() | |
{ | |
return 'bar' |
/*\ | |
* Journey in search of the most beautiful and | |
* most usable JavaScript object literal syntax. | |
\*/ | |
/*\ | |
* Traditional, AKA how fast can you find a missing comma? | |
\*/ | |
var temp = { | |
Baar: 1, |
// Superpowered logging for AngularJS. | |
angular.module('logFactory', ['ng']) | |
.value('logFactory_whiteList', /.*/) | |
//.value('logFactory_whiteList', /!|.*Ctrl|run/) | |
.value('logFactory_piercingMethods', {warn:true, error:true}) | |
.factory('logFactory', ['$log', 'logFactory_whiteList' , 'logFactory_piercingMethods', function ($log, whiteList, piercing) { | |
piercing = piercing || {} |
function copyFbRecord(oldRef, newRef) { | |
oldRef.once('value', function(snap) { | |
newRef.set( snap.value(), function(error) { | |
if( error && typeof(console) !== 'undefined' && console.error ) { console.error(error); } | |
}); | |
}); | |
} |