Skip to content

Instantly share code, notes, and snippets.

View XerxesNoble's full-sized avatar
🔋

Xerxes XerxesNoble

🔋
View GitHub Profile
@chrsgrffth
chrsgrffth / gist:c2b33896138aa1894cfd
Created August 18, 2014 02:59
Forward Port 80 to 3000 for Node.js (from StackOverflow)
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
@gre
gre / easing.js
Last active May 8, 2024 14:30
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {