Skip to content

Instantly share code, notes, and snippets.

[
{
"type": "fieldset",
"title": "Resolution (pixels)",
"htmlClass": "form-inline",
"items": [
{"key": "width","notitle": true, "placeholder": "w", "description": ""},
{"key": "height","notitle": true, "placeholder": "h", "description": ""}
]
},
@sbrisko
sbrisko / keybase.md
Created September 18, 2014 00:08
keybase.md

Keybase proof

I hereby claim:

  • I am sbrisko on github.
  • I am sbrisko (https://keybase.io/sbrisko) on keybase.
  • I have a public key whose fingerprint is 2E92 C462 4AF8 8F55 6312 B647 46CA A0F3 CFDB F875

To claim this, I am signing this object:

@sbrisko
sbrisko / gist:4350623
Created December 21, 2012 04:13
manage output info
function ManageOutputInformation(event) {
// this was only being called on stream change, now being triggered on any output change
var selection = $(this).val();
var parent = $(this).parents('.live_output_settings');
var id = selection.replace(/.*_(\d+)$/, "$1");
// STREAM
var stream_controllers = ['channels', 'channel_profiles', 'stream_jobs', 'stream_job_profiles'];
if (stream_controllers.indexOf(page.controller) >= 0) {
ToggleOutputDependencies(parent,selection);
function ClearPreset(event)
{
// event can either be a triggered event, or the id string of the element that is changing
var id = event; // default if event is id string
var element = $(this); // default if event is triggered event
if ("object" == typeof(event)) {id = element.attr('id');} // event is triggered event -- get real id string
if ("string" == typeof(event)) {element = $('#' + event);} // event is id string -- get real element
var exceptions = ['gpu_select','audio_selector_select'];