Skip to content

Instantly share code, notes, and snippets.

View luofei2011's full-sized avatar
🏠
Working from home

Poised_flw luofei2011

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

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 December 24, 2013 04:28
搞定mouseover和mouseout兼容性的代码
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 April 16, 2024 19:53
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 = {