Skip to content

Instantly share code, notes, and snippets.

@albertnis
albertnis / bedside_button.yaml
Created February 17, 2020 07:07
Making a custom multi-click push button using ESPHome
esphome:
name: bedside_button
platform: ESP8266
board: esp12e
wifi:
ssid: "ssid"
password: "example"
logger:
@hakre
hakre / iconv-l.txt
Created December 2, 2012 12:35
Iconv List of Encodings
ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US ISO_646.IRV:1991 US US-ASCII CSASCII
UTF-8
ISO-10646-UCS-2 UCS-2 CSUNICODE
UCS-2BE UNICODE-1-1 UNICODEBIG CSUNICODE11
UCS-2LE UNICODELITTLE
ISO-10646-UCS-4 UCS-4 CSUCS4
UCS-4BE
UCS-4LE
UTF-16
UTF-16BE
@domenic
domenic / upload.js
Created March 20, 2012 17:13
File upload using XHR PUT
(function () {
var $dropTarget = $("#drop-target");
var slice = Function.prototype.call.bind(Array.prototype.slice);
$dropTarget.on({
drop: function (event) {
slice(event.originalEvent.dataTransfer.files).forEach(putFile);
return false;