Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Farrell jasonfarrell

View GitHub Profile
View keybase.md

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:

View 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/
@jasonfarrell
jasonfarrell / Tab changes
Created Jul 12, 2013
Firefox Tips — Code from 2009 article by Use All Five. This is most likely out of date.
View Tab changes
gBrowser.tabContainer.addEventListener("TabSelect", function(e) { onTabChange();}, false);
@jasonfarrell
jasonfarrell / usage.js
Last active May 1, 2020
Checks if a DOM element is visible. Takes into consideration its parents and overflow.
View usage.js
var my_element = document.getElementById('my-element');
//-- Returns true/false
my_element.isVisible(my_element);
You can’t perform that action at this time.