This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lirc_node = require('lirc_node'); | |
lirc_node.init(); | |
const remote = (device, command) => { | |
lirc_node.irsend.send_once(device, command, () => { | |
console.log(command); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import network | |
import socket | |
import time | |
import struct | |
from machine import Pin | |
NTP_DELTA = 2208988800 | |
host = "pool.ntp.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |