Skip to content

Instantly share code, notes, and snippets.

View jgannonjr's full-sized avatar

Johnny Gannon jgannonjr

  • Los Angeles, CA
View GitHub Profile
### Keybase proof
I hereby claim:
* I am jgannonjr on github.
* I am johnny (https://keybase.io/johnny) on keybase.
* I have the public key with fingerprint D266 1BA7 BD30 9E7A 91F9  6FD3 1571 3DC6 6A06 8BDD
To claim this, I am signing this object:
@jgannonjr
jgannonjr / hn_ajax_auto_refresh.js
Created March 15, 2012 01:53
Hacker News ajax auto refresh script with Y logo spinner
(function ($) {
// Monkey patch jQuery 1.3.1+ css() method to support CSS 'transform'
// property uniformly across Safari/Chrome/Webkit, Firefox 3.5+, IE 9+, and Opera 11+.
// 2009-2011 Zachary Johnson www.zachstronaut.com
// Updated 2011.05.04 (May the fourth be with you!)
function getTransformProperty(element) {
// Try transform first for forward compatibility
// In some versions of IE9, it is critical for msTransform to be in
// this list before MozTranform.
var properties = ['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform'];
@jgannonjr
jgannonjr / zendesk_ajax_auto_refresh.html
Created September 13, 2011 21:32
A widget for Zendesk that allows AJAX auto refresh of Views.
<!--
To use this widget, create a new "Custom" widget. Copy and paste this code into the widget then save.
Once saved, you can add the widget to your Views. Be sure to disable the widget by hitting the Enable/Disable
button whenever mass updating tickets (otherwise the check boxes next to tickets you have selected may get
cleared if an update occurs before you submit the changes). You can set whether the refresh is enabled or
disabled by default as well as the refresh interval in the section commented "SET CUSTOM SETTINGS HERE".
-->