Skip to content

Instantly share code, notes, and snippets.

View fidian's full-sized avatar

Tyler Akins fidian

View GitHub Profile
<html><head><title>Test</title>
<!-- jQuery 1.8.x -- using whatever is newest -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<!-- Using the latest Uniform from the develop branch -->
<link rel="stylesheet" href="https://raw.github.com/pixelmatrix/uniform/develop/themes/default/css/uniform.default.css" media="screen">
<script src="https://raw.github.com/pixelmatrix/uniform/develop/jquery.uniform.js"></script>
<script>
// Uniform every form element
$(function () {
21$('input, select').uniform();
@fidian
fidian / gist:4714897
Created February 5, 2013 14:48
Uniform issue #280
<html><head><title>Test</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<link rel="stylesheet" href="https://raw.github.com/pixelmatrix/uniform/master/themes/default/css/uniform.default.css" media="screen">
<script src="https://raw.github.com/pixelmatrix/uniform/master/jquery.uniform.js"></script>
<script>
// Uniform every form element
$(function () {
$('input, select').uniform();
});
</script>
@fidian
fidian / check-angular-module-dependencies.js
Created February 24, 2017 17:42
Are you getting a totally unhelpful message from Angular saying it has a problem loading a module?
/**
* So I have had a bugger of a time figuring out what dependency fails and
* exactly how that module is required. This function will do that search
* for you. Simply open up the browser's console, copy and paste in the function,
* then call it with the name of the module you expect to run.
*
* Sample:
*
* checkAngularModuleDependencies("app")
*
@fidian
fidian / check-angular-module-dependencies.js
Last active February 24, 2017 17:43
Are you getting a totally unhelpful message from Angular saying it has a problem loading a module?
/**
* There's times that Angular reports errors similar to this one:
*
* Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.2/$injector/modulerr?p0=...
*
* The link doesn't explain the module tree that's being loaded nor really
* where the problem resides. :-(
*
* So I have had a bugger of a time figuring out what dependency fails and
* exactly how that module is required. This function will do that search
@fidian
fidian / gist:e19abe283c278adc1397d6fb9a35bc2e
Created April 10, 2018 11:09
SmartThings Node Red X10 Bridge Flow
[
{
"id": "a206e388.d25c7",
"type": "tab",
"label": "Smartthings X10 Connector",
"disabled": false,
"info": ""
},
{
"id": "8f319222.e6859",