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
/** Examples: | |
*/ | |
(function(definition) { | |
if (typeof require !== "undefined") { | |
define('fun', [], definition); | |
} else if (typeof module !== "undefined" && module.exports) { | |
module.exports.fun = definition(); | |
} else { | |
fun = definition(); |
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 formatString = (function () { | |
/** | |
formatString | |
Expected arguments: | |
format[0]: <String> The format. It uses a specific interpolation notation. | |
data[1]: <Object|Array<Object>> The data to interpolate | |
Throws: | |
TypeError: If format is null or undefined |
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 A = function augment(a) { | |
}; |
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 Guid = (function() { | |
/// Constructor: | |
function Guid() { | |
this.bytes = (function rec(acc, i) { | |
return (0 > i || i > 31) ? | |
acc : | |
rec(acc.concat((Math.random() * 16 | 0).toString(16)), i + 1); | |
})([], 0); | |
} |
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 multi = (function multimethod_closure() { | |
/* | |
Usage: | |
var m = multi() | |
.when_t(String)(function (s) {console.log('string');}) | |
.when_t(Number)(function (s) {console.log('number');}) | |
*/ | |
"use strict"; | |
var WHEN_TYPE = "type", |
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
/****************************************************************************** | |
ORIGINAL: | |
http://upload.wikimedia.org/wikipedia/commons/3/30/Chromiumthrobber.svg | |
------------------------------------------------------------------------------- | |
<svg width="16" height="16" viewBox="0 0 300 300" | |
xmlns="http://www.w3.org/2000/svg" version="1.1"> | |
<path d="M 150,0 | |
a 150,150 0 0,1 106.066,256.066 | |
l -35.355,-35.355 | |
a -100,-100 0 0,0 -70.711,-170.711 z" |
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
// ==UserScript== | |
// @name Uncheck Flash "Optional" Offer | |
// @namespace bjorn | |
// @description No one wants McAffee | |
// @include http://get.adobe.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
document.addEventListener('DOMContentLoaded', function () { |
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
/* See LICENSE file for copyright and license details. */ | |
/* appearance */ | |
static const char font[] = "-*-dejavu sans mono-bold-r-*-*-10-*-*-*-*-*-*-*"; | |
static const char normbordercolor[] = "#444444"; | |
static const char normbgcolor[] = "#222222"; | |
static const char normfgcolor[] = "#bbbbbb"; | |
static const char selbordercolor[] = "#005577"; | |
static const char selbgcolor[] = "#005577"; | |
static const char selfgcolor[] = "#eeeeee"; |
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
" vim:foldmethod=marker:foldlevel=0:foldnestmax=1 | |
" Recommended plugins: {{{ | |
" ag.vim | |
" badwolf | |
" ctrlp.vim | |
" gundo.vim | |
" npm-debug.log | |
" supertab | |
" syntastic |
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
;; Common Lisp capabilities are nice | |
(require 'cl) | |
;; Nice programming font, if supported | |
(set-frame-font "DejaVu Sans Mono-11") | |
(setq inhibit-startup-message t) ;; no splash screen | |
(global-linum-mode 1) ;; always show line numbers |
OlderNewer