Skip to content

Instantly share code, notes, and snippets.

View classLfz's full-sized avatar
🎯
Focusing

lfz classLfz

🎯
Focusing
  • guangzhou china
View GitHub Profile
@billpatrianakos
billpatrianakos / lirc_pi_zero_w.txt
Last active December 16, 2023 19:20 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi Zero W (Raspbian Buster)
# Steps to get IR receiver and transmitter from Amazon [1] working on a Raspberry Pi Zero W.
$ sudo apt-get update
$ sudo apt-get install lirc
# Remove this line from /boot/config.txt
dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
# Add the following lines in /boot/config.txt
dtoverlay=gpio-ir,gpio_pin=23
@dcollien
dcollien / multipart.js
Last active March 30, 2024 18:15
Parse multi-part formdata in the browser
var Multipart = {
parse: (function() {
function Parser(arraybuf, boundary) {
this.array = arraybuf;
this.token = null;
this.current = null;
this.i = 0;
this.boundary = boundary;
}