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")
*

Keybase proof

I hereby claim:

  • I am fidian on github.
  • I am fidian (https://keybase.io/fidian) on keybase.
  • I have a public key whose fingerprint is 1640 90D5 B955 1478 BE7F 2558 8F3B 8C43 2F43 93BD

To claim this, I am signing this object:

@fidian
fidian / gist:fd00815c54a98183aad7
Created March 19, 2015 15:52
Output of vlc for mkvtoolnix issue 1146
core debug: adding item `out.mkv' ( file:///home/fidian/out.mkv )
core debug: processing request item: out.mkv, node: null, skip: 0
core debug: Creating an input for 'out.mkv'
core debug: rebuilding array of current - root Playlist
core debug: rebuild done - 1 items, index 0
core debug: starting playback of the new playlist item
core debug: resyncing on out.mkv
core debug: out.mkv is at 0
core debug: creating new input thread
core debug: Creating an input for 'out.mkv'
@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>