Skip to content

Instantly share code, notes, and snippets.

View krisdahl's full-sized avatar

Kris Dahl krisdahl

View GitHub Profile
@krisdahl
krisdahl / companion_emulator_4x.html
Last active June 14, 2024 22:36
A quick touchscreen layout for Companion by iframing 4 Bitfocus Companion Streamdeck Emulators into a multiview.
<!DOCTYPE html>
<html>
<head>
<style>
* {
box-sizing: border-box;
}
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr;
@krisdahl
krisdahl / handlebars.object_helpers.js
Created October 16, 2012 21:30 — forked from strathmeyer/handlebars.object_helpers.js
Handlebars.js helpers to iterate over objects
// HELPER: #key_value
//
// Usage: {{#key_value obj}} Key: {{key}} // Value: {{value}} {{/key_value}}
//
// Iterate over an object, setting 'key' and 'value' for each property in
// the object.
Handlebars.registerHelper("key_value", function(obj, options) {
var buffer = "",
key;