Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Poised_flw luofei2011

🏠
Working from home
View GitHub Profile
@irazasyed
irazasyed / FBFeedShare.md
Last active Feb 12, 2018
Facebook Dialog feed share example with all the properties and using YouTube App!
View FBFeedShare.md

Learn more about Sharing Best Practices for better understanding.

V1: This version has properties but the output would be with numeric keys, Example (Google, Bing and Yahoo are the Hyperlinks/Clickable):

1: Google
2: Bing
3: Yahoo
@luofei2011
luofei2011 / gist:8108791
Created Dec 24, 2013
搞定mouseover和mouseout兼容性的代码
View gist:8108791
function isMouseLeaveOrEnter(e, handler) {
if (e.type != 'mouseout' && e.type != 'mouseover') return false;
var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement;
while (reltg && reltg != handler)
reltg = reltg.parentNode;
return (reltg != handler);
}
@gre
gre / easing.js
Last active Jun 9, 2021
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity