Skip to content

Instantly share code, notes, and snippets.

@gregdasney
gregdasney / merkury-innovations-mi-ew010-999ww-led-strip.sample.yaml
Created June 2, 2023 20:26
Sample esp home config for merkury-innovations-mi-ew010-999ww-led-strip.
# Single click toggles on/off
# double click toggles between a few different color modes
esphome:
name: merk-dim-strip-0
friendly_name: merk-dim-strip-0
libretiny:
board: cb3s
framework:
@sam016
sam016 / AllGattCharacteristics.java
Last active May 4, 2024 20:46
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
// cave.js
//
// contains ways of changing, generating, and displaying a cave.
// a cave is a 2d array.
//
// All these methods are side-effect-free builders.
//
var sys = require('sys');
function Cave(width, height, probability) {