Skip to content

Instantly share code, notes, and snippets.

View gseguin's full-sized avatar

Ghislain Seguin gseguin

  • Boulder, CO
  • 00:30 (UTC -06:00)
View GitHub Profile
@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 );
@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 / 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 / Makefile
Created January 18, 2012 22:13
Makefile for building jQM with node
# The files to include when compiling the CSS files
CSSFILES = css/structure/jquery.mobile.core.css \
css/structure/jquery.mobile.transitions.css \
css/structure/jquery.mobile.grids.css \
css/structure/jquery.mobile.fixedToolbar.css \
css/structure/jquery.mobile.navbar.css \
css/structure/jquery.mobile.button.css \
css/structure/jquery.mobile.collapsible.css \
css/structure/jquery.mobile.controlgroup.css \
css/structure/jquery.mobile.dialog.css \
@gseguin
gseguin / build.js
Created March 22, 2012 16:46 — forked from Wilto/build.js
$(function($){
var depjson,
builderhtml = [],
sortable = [],
groupBy = function( jsondata ) {
var newarray = [];
for (key in jsondata) {
console.log( key );
}
@gseguin
gseguin / a.css
Created March 29, 2012 22:03
CSS Dependencies
@import c.css
@import d.css
/* A rules */
@gseguin
gseguin / phantomjs-qunit-runner.js
Created May 22, 2012 22:05
PhantomJS QUnit test runner with multiple output
/*
* QUnit Qt+WebKit powered headless test runner using Phantomjs
*
* Phantomjs installation: http://code.google.com/p/phantomjs/wiki/BuildInstructions
*
* Run with:
* phantomjs phantomjs-qunit-runner.js [url-of-your-qunit-testsuite]
*
* E.g.
* phantomjs phantomjs-qunit-runner.js http://localhost/qunit/test
@gseguin
gseguin / gist:7085409
Created October 21, 2013 15:05
Hide spinners on input type="numbers"
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
}
function arno(){
/*
* check for authenticated user
*/
var schema = null;
var profile = null;
if (params["access_token"]) {
/*
* Set up once and for all
@gseguin
gseguin / checkstyle.js
Created January 20, 2014 22:14
JSHint reporter for checkstyle decoding severity
// Author: Boy Baukema
// http://github.com/relaxnow
module.exports =
{
reporter: function (results, data, opts)
{
"use strict";
var files = {},
out = [],