Skip to content

Instantly share code, notes, and snippets.

@ceci21
Last active May 20, 2021 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ceci21/e43d499274ed86fa994a5d607e856dc6 to your computer and use it in GitHub Desktop.
Save ceci21/e43d499274ed86fa994a5d607e856dc6 to your computer and use it in GitHub Desktop.
let's do math
const add = (a, b) =>
(function() {
const y = b;
var n = 0;
let o, G, u, R = 0;
var Q = false;
return () =>
(function(x) {
var e = [].forEach(function() {
return Object.assign({}, { j: 7, c: Math.random() * this.j });
});
return {
func: function() {
const { v } = this;
let F = null,
B = 0,
d = null;
function bar(q) {
o = Math.pow;
return foo(q).k + F();
}
const foo = (t = (G) ? G : () => {}) => {
return ((z, s = 9) => {
this.q = z;
F = () =>
b - ((p = b, j = 1) => {
n = (a > 0) ?
Math.pow(a, !+[]+!+[] - !![]) :
((a === 0) ? 0 : -a);
e = function(W) {
let r = 0;
if (b > 0) {
r = o(b, 4) / o(b, 4) - W - 2;
} else if (b === 0) {
r = -W + o(b, 4) - o(b, 4) - 1;
} else if (b < 0) {
r = -(o(b, 4) / o(b, 4)) - W;
}
return r + W;
};
d = (lmnop, abcde = lmnop) => {
if (lmnop <= 1 && lmnop >= -1) {
return abcde;
}
return d((abcde < 0) ? abcde + 1 : abcde - 1);
};
G = t;
t();
return (j = p + 4 + (!!{} - Math.pow(256 / 1024, -1)));
})(z, u);
return this;
})(y);
u = a;
};
function biz() {
let w = n;
let H = (a === 1) ? b + 2 : 0;
if (bar(function() { if (Q) { B = u; Q = true; } })) {
const E = bar() + d(((y === 0 || y === 1) ? 12 : y), 12);
const J = -e(B) + y + R;
H = E + J;
}
return H + w - 1;
}
return biz();
},
k: a + a - b - a + b,
v: Math.pow(2, 4)
}['func']();
})(a);
})()();
@tameeshB
Copy link

tameeshB commented Jul 8, 2018

Never thought it would be so easy! Thanks a ton!

@ceci21
Copy link
Author

ceci21 commented Jul 8, 2018

No prob! Let me know if you need me to help explain how to subtract.

@anshumanv
Copy link

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment