Skip to content

Instantly share code, notes, and snippets.

View keropodium's full-sized avatar
💥

keropodium

💥
  • ¯\_(ツ)_/¯
  • Alicante, Spain
View GitHub Profile
@keropodium
keropodium / deezer-haxs.js
Created July 14, 2016 16:23
ffs let me skip 😡
window.dzPlayer.skipRadioAllowed = function() {
return true;
};
String.prototype.map = function(callback) {
return (typeof callback === 'function' ? this.replace(/./g, callback) : this);
};
@keropodium
keropodium / array.js
Last active May 18, 2016 17:20
Immutable-Functional-Array 🐑💨
Array.prototype.push2 = function(x) {
return [].concat(this, x);
};
Array.prototype.pop2 = function() {
return this.slice(0, -1);
};
Array.prototype.unshift2 = function(x) {
return [].concat(x, this);