Skip to content

Instantly share code, notes, and snippets.

@sufianrhazi
sufianrhazi / gist:6889655
Last active December 25, 2015 00:39
.is() strawman
/*global IMVU:true*/
var IMVU = IMVU || {};
(function() {
IMVU.extendError = function extendError(baseErrorType, errorName) {
var errorClass = IMVU.createNamedFunction(errorName, function(message) {
this.name = errorName;
this.message = message;
this.__isa = Object.create(baseErrorType.prototype.__isa || null);
this.__isa[errorName] = true;
//
// BEGIN your existing code, annotated
//
// You have a common data structure representing *all* power ups
function PowerUp(type, colour, x, y){
this.type = type;
this.x = x;
this.y = y;
// ...

Keybase proof

I hereby claim:

  • I am sufianrhazi on github.
  • I am sufian (https://keybase.io/sufian) on keybase.
  • I have a public key whose fingerprint is E865 2F72 4C73 A430 18A4 1BC2 D20B 741B 5340 D71A

To claim this, I am signing this object:

.section __TEXT,__text,regular,pure_instructions
.macosx_version_min 10, 10
.globl _main
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp0:
.cfi_def_cfa_offset 16
Ltmp1:
0 mac-the-knife:~ sufian $ dig cheekswab.org any
; <<>> DiG 9.8.3-P1 <<>> cheekswab.org any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32816
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;cheekswab.org. IN ANY
@sufianrhazi
sufianrhazi / nix-tmux-build-failure.log
Created July 19, 2016 02:09
nix tux build failure
installing ‘tmux-2.2’
these derivations will be built:
/nix/store/vsqdnl52imfaay05dw5h9dclcmx9dvaw-tmux-2.2.drv
building path(s) ‘/nix/store/5bdglyjjx6rxsn4y6zgv85c9mjhfl7hw-tmux-2.2’, ‘/nix/store/5hljdd9nlxwfv36vf763h2mxjkr6ybj3-tmux-2.2-man’, ‘/nix/store/w78grp6bp9mw6g48q3dpyis0zdrnxzin-tmux-2.2-bin’
unpacking sources
unpacking source archive /nix/store/7hhmpzmw9zvfl1px67jlj2l31gkb5k5b-tmux-2.2-src
source root is tmux-2.2-src
patching sources
autoreconfPhase
autoreconf: Entering directory `.'
// Original
i18n = Array.from(allDeps).reduce(function(p,c){
if (c.slice(0, 'template!'.length) === 'template!') {
return true;
}
return p;
}, false)
// Array#reduce and String#startsWith
i18n = Array.from(allDeps).reduce(function(p,c){