Skip to content

Instantly share code, notes, and snippets.

View num13ru's full-sized avatar
🛠️
I may be slow to respond.

num13ru

🛠️
I may be slow to respond.
View GitHub Profile
@num13ru
num13ru / debounce.js
Created January 24, 2025 21:57
Interview helpers
const debounce = (fn, delay) => {
let timer;
return function (...args) {
const context = this;
if (timer) clearTimeout(timer);
timer = setTimeout(() => {
timer = null;
fn.apply(context, args);
@num13ru
num13ru / index.html
Created October 13, 2018 22:03 — forked from imevro/index.html
Minimally working version of SSR (react, react-router, react-helmet, styled-components; implying use of react-scripts without eject)
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="$helmet-placeholder$">
<meta name="$sc-placeholder$">
<style>
@num13ru
num13ru / nodemuc.md
Last active January 6, 2018 06:11 — forked from switchtrue/nodemuc.md
Notes on flashing MicroPython on NodeMCU from MacOS

NodeMCU mode: Keyes NodeMCU OS: Mac OS X (macOS)

Install a serial driver for the NodeMCU from: http://www.wch.cn/download/CH341SER_MAC_ZIP.html

Plugin the NodeMCU and see if you can see it at /dev/tty.wchusbserialfd120 NOTE: If you can't find it at the above locations try ls /dev/cu.* and see what else is available.

OSX Sierra Important Note: After upgrading to Sierra plugging in my NodeMUC I kept getting Kernel panics and the laptop would restart. To fix this I uninstalled the original drivers with the following commands, restarted and then re-installed from the link above.