Skip to content

Instantly share code, notes, and snippets.

Ben cortesben

Block or report user

Report or block cortesben

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cortesben / gist:4b384c27d1c714bcaa931c4e8319caa3
Created Jan 2, 2018 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
View gist:4b384c27d1c714bcaa931c4e8319caa3
git fetch --all
git reset --hard origin/master
git pull origin master
cortesben / scrollTo.js
Created Dec 10, 2016 — forked from james2doyle/scrollTo.js
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
View scrollTo.js
// easing functions
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
return -c/2 * (t*(t-2) - 1) + b;
You can’t perform that action at this time.