Skip to content

Instantly share code, notes, and snippets.

@qdsang
qdsang / BezierCurve.js
Last active February 15, 2023 02:31
BezierCurve
function BezierCurve(p1x, p1y, p2x, p2y, t) {
let mt = 1 - t;
let mt2 = mt * mt,
t2 = t * t,
a,
b,
c,
d = 0;
let p0x = 0, p0y = 0;
@qdsang
qdsang / gist:91dbcb188234406b1e1d
Created March 12, 2015 07:38
Facebook Groups React Native
This file has been truncated, but you can view the full file.
__DEV__ = !1,
function(e) {
function t(e) {
for (var t, n, r, i, o = Array.prototype.slice.call(e), a = {}; o.length;)
if (n = o.shift(), !a[n] && (a[n] = !0, r = h[n], r && r.waiting))
for (t = 0; t < r.dependencies.length; t++) i = r.dependencies[t], (!h[i] || h[i].waiting) && o.push(i);
for (n in a) v.call(a, n) && o.push(n);
var s = [];
for (t = 0; t < o.length; t++) {
n = o[t];