Skip to content

Instantly share code, notes, and snippets.

View cortesben's full-sized avatar

Ben cortesben

View GitHub Profile
@cortesben
cortesben / gist:4b384c27d1c714bcaa931c4e8319caa3
Created January 2, 2018 15:19 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@cortesben
cortesben / scrollTo.js
Created December 10, 2016 12:57 — forked from james2doyle/scrollTo.js
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
// easing functions http://goo.gl/5HLl8
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
}
t--;
return -c/2 * (t*(t-2) - 1) + b;
};