Skip to content

Instantly share code, notes, and snippets.

View gseguin's full-sized avatar

Ghislain Seguin gseguin

  • Boulder, CO
  • 06:26 (UTC -06:00)
View GitHub Profile
@gseguin
gseguin / main.js
Created January 11, 2012 23:22
jQM mobileinit with AMD
require( ['jquery'], function( $ ) {
$( document ).one( "mobileinit", function() {
// Set up your jQM options here
});
require( ['jquery.mobile'] );
}
@gseguin
gseguin / README.md
Created November 11, 2011 04:22 — forked from gabrielfalcao/README.md
Homebrew formula for nginx with the tcp socket proxy module already enabled
@gseguin
gseguin / gist:1126024
Created August 4, 2011 19:31
jQMify this!
javascript:(function(doc, docElem){ function s(url, css, sc){ sc = doc.createElement( css ? "link" : "script");if(css){sc.rel = "stylesheet";} sc[css?"href":"src"] = url; docElem.insertBefore(sc,docElem.firstChild); return sc; } s("http://jquerymobile.com/test/themes/default/jquery.mobile.core.css", true ); s("http://jquerymobile.com/test/themes/default/jquery.mobile.transitions.css", true ); var jq =s("http://code.jquery.com/jquery-latest.min.js"); jq.onload = function(){ s( "http://code.jquery.com/mobile/latest/jquery.mobile.min.js"); }; })(document, document.documentElement );