Skip to content

Instantly share code, notes, and snippets.

@thenbe
thenbe / vnr
Created November 23, 2022 20:19
Restore original neovim filename substitution behavior when using vscode-neovim extension
#!/bin/bash
# Usage: vnr <your-command>
# Example: vnr node % --my-arg
# Description: This script removes every occurrence of
# "__vscode_neovim__-file://", then runs the command.
# The pattern to replace
import network
import socket
import time
import struct
from machine import Pin
NTP_DELTA = 2208988800
host = "pool.ntp.org"
@justinyoo
justinyoo / 01-remote.js
Created August 18, 2020 03:31
Remote Controlling Home Appliances Using Raspberry PI and Power Platform
let lirc_node = require('lirc_node');
lirc_node.init();
const remote = (device, command) => {
lirc_node.irsend.send_once(device, command, () => {
console.log(command);
});
}