Skip to content

Instantly share code, notes, and snippets.

View buschtoens's full-sized avatar
🏳️‍🌈
Open Source

Jan Buschtöns buschtoens

🏳️‍🌈
Open Source
View GitHub Profile
@nickknissen
nickknissen / EnOcean PTM 215Z (Friends of Hue) switch.yaml
Created December 9, 2021 07:31
EnOcean PTM 215Z (Friends of Hue) switch
blueprint:
name: Controller - EnOcean PTM 215Z (Friends of Hue) switch
description: 'Controller automation for executing press/hold/release actions triggered by
EnOcean PTM 215Z (Friends of Hue) switch.'
domain: automation
input:
controller_entity:
name: (Zigbee2MQTT) Controller Entity
description: The action sensor of the controller to use for the automation.

Everything I Know About UI Routing

Definitions

  1. Location - The location of the application. Usually just a URL, but the location can contain multiple pieces of information that can be used by an app
    1. pathname - The "file/directory" portion of the URL, like invoices/123
    2. search - The stuff after ? in a URL like /assignments?showGrades=1.
    3. query - A parsed version of search, usually an object but not a standard browser feature.
    4. hash - The # portion of the URL. This is not available to servers in request.url so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.
    5. state - Object associated with a location. Think of it like a hidden URL query. It's state you want to keep with a specific location, but you don't want it to be visible in the URL.
@mnutt
mnutt / example.md
Last active December 27, 2023 14:10
TreeStyleTab sidebar tabs only

Example:

firefox

@caseywatts
caseywatts / 0 README.md
Last active May 2, 2024 06:06
d3 & c3 npm shim to es6 module for Ember

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.


Damian Bushong

@slindberg
slindberg / README.md
Last active August 29, 2015 13:56
Model 'Fragments' in Ember Data
@buschtoens
buschtoens / example.js
Created September 8, 2012 17:06
Argument sanitization
// Module dependencies
var sanitize = require("./sanitize.js");
// function createConnection(String host, Number port, Object credentials, Array data)
function createConnection(host, port, credentials, data) {
sanitize(arguments, [String, Number, Object, Array]);
console.log(host, port, credentials, data);
}