Skip to content

Instantly share code, notes, and snippets.

View gseguin's full-sized avatar

Ghislain Seguin gseguin

  • Boulder, CO
  • 03:21 (UTC -06:00)
View GitHub Profile
@gseguin
gseguin / machine.js
Last active June 2, 2021 22:17
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@gseguin
gseguin / jquery.mobile.vmouse.js
Last active December 10, 2020 07:13
Workaround Safari Mobile's bug with iframes and touch events described here: https://forum.jquery.com/topic/cannot-change-cursor-position-for-inputs-in-iframe
// This plugin is an experiment for abstracting away the touch and mouse
// events so that developers don't have to worry about which method of input
// the device their document is loaded on supports.
//
// The idea here is to allow the developer to register listeners for the
// basic mouse events, such as mousedown, mousemove, mouseup, and click,
// and the plugin will take care of registering the correct listeners
// behind the scenes to invoke the listener at the fastest possible time
// for that device, while still retaining the order of event firing in
// the traditional mouse environment, should multiple handlers be registered
@gseguin
gseguin / keybase.md
Created April 8, 2014 18:12
keybase.md

Keybase proof

I hereby claim:

  • I am gseguin on github.
  • I am ghislain (https://keybase.io/ghislain) on keybase.
  • I have a public key whose fingerprint is 9288 4063 A33C CCB7 1CED 4CDE 166E 72D3 ACC9 F833

To claim this, I am signing this object:

@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 = [],
function arno(){
/*
* check for authenticated user
*/
var schema = null;
var profile = null;
if (params["access_token"]) {
/*
* Set up once and for all
@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;
}
@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 / a.css
Created March 29, 2012 22:03
CSS Dependencies
@import c.css
@import d.css
/* A rules */
@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 / 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 \