Skip to content

Instantly share code, notes, and snippets.

View Pritoj's full-sized avatar
🎯
Killin' it

Pritoj Pritoj

🎯
Killin' it
View GitHub Profile
@Pritoj
Pritoj / keybase.md
Created April 1, 2019 09:13
Keybase identity

Keybase proof

I hereby claim:

  • I am pritoj on github.
  • I am pritoj (https://keybase.io/pritoj) on keybase.
  • I have a public key ASC3naa4Zg6x0J367dguqV6LuSBetlrA12AYfcKDuVm3Hgo

To claim this, I am signing this object:

// Array hug, one array hugs the other
// If the hugger is odd numbered, more in the front
Array.prototype.hug = function(arr){
let hugged = this.slice(0,Math.ceil(this.length/2));
hugged.push(...arr);
hugged.push(...this.slice(Math.ceil(this.length/2), this.length));
return hugged;
}
// Array spoon, one array spoons the other
// Array hug, one array hugs the other
// If the hugger is odd numbered, more in the front
Array.prototype.hug = function(arr){
let hugged = this.slice(0,Math.ceil(this.length/2));
hugged.push(...arr);
hugged.push(...this.slice(Math.ceil(this.length/2), this.length));
return hugged;
}
@Pritoj
Pritoj / room.json
Created October 26, 2016 12:15
Room
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.