Skip to content

Instantly share code, notes, and snippets.

View fidian's full-sized avatar

Tyler Akins fidian

View GitHub Profile
@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",
@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 / 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 / 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>
<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:4539248
Created January 15, 2013 15:04
Uniform issue #251
<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>
<link rel="stylesheet" href="themes/default/css/uniform.default.css" media="screen">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script src="jquery.uniform.js"></script>
<script>
// Uniform every form element
$(function () {
@fidian
fidian / gist:4488742
Created January 8, 2013 22:46
Sample page for uniform issue #256
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="themes/default/css/uniform.default.css" type="text/css" media="screen">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="jquery.uniform.js"></script>
</head>
<body>
<a href="#" onclick="alert('link click'); return false;">
<img src="http://mxk.ru/style-admin/images/buttons/save16.png">
@fidian
fidian / gist:4488717
Created January 8, 2013 22:43
Test for uniform issue #267
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="themes/default/css/uniform.default.css" type="text/css" media="screen">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="jquery.uniform.js"></script>
</head>
<body>
<form method=post action="#" onsubmit="return false">
<button>I am a button</button>
@fidian
fidian / bug_251.html
Created December 18, 2012 17:02
Test for bug 251
<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 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 () {
$('input, select').uniform({
@fidian
fidian / bug_265.html
Created December 18, 2012 15:09
Test for uniform bug 265
<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 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 () {
$('input, select').uniform();