Skip to content

Instantly share code, notes, and snippets.

View jasonfarrell's full-sized avatar

Jason Farrell jasonfarrell

View GitHub Profile
@jasonfarrell
jasonfarrell / usage.js
Last active February 23, 2021 22:15
Checks if a DOM element is visible. Takes into consideration its parents and overflow.
var my_element = document.getElementById('my-element');
//-- Returns true/false
my_element.isVisible(my_element);
@jasonfarrell
jasonfarrell / Tab changes
Created July 12, 2013 22:48
Firefox Tips — Code from 2009 article by Use All Five. This is most likely out of date.
gBrowser.tabContainer.addEventListener("TabSelect", function(e) { onTabChange();}, false);
@jasonfarrell
jasonfarrell / cloth.js
Created December 30, 2015 23:22 — forked from yyolk/cloth.js
/*
* Cloth Simulation using a relaxed constrains solver
*/
// Suggested Readings
// Advanced Character Physics by Thomas Jakobsen Character
// http://freespace.virgin.net/hugo.elias/models/m_cloth.htm
// http://en.wikipedia.org/wiki/Cloth_modeling
// http://cg.alexandra.dk/tag/spring-mass-system/

Keybase proof

I hereby claim:

  • I am jasonfarrell on github.
  • I am jasonfarrell (https://keybase.io/jasonfarrell) on keybase.
  • I have a public key ASATfrK66z-ad1citJqORzm5BK4RTTRu-m-xQdbC7Rae0Qo

To claim this, I am signing this object: