Skip to content

Instantly share code, notes, and snippets.

View mosch's full-sized avatar
🍉
Yummi!

Moritz mosch

🍉
Yummi!
View GitHub Profile
@bradfrost
bradfrost / gist:59096a855281c433adc1
Last active September 4, 2023 15:01
Why I'm Not A JavaScript Developer

Answering the Front-end developer JavaScript interview questions to the best of my ability.

  • Explain event delegation

Sometimes you need to delegate events to things.

  • Explain how this works in JavaScript

This references the object or "thing" defined elsewhere. It's like "hey, thing I defined elsewhere, I'm talkin' to you."

  • Explain how prototypal inheritance works.
@viniciusCamargo
viniciusCamargo / README.md
Last active February 11, 2021 10:26
atom: Redux-inspired state manager with simpler API
const l = console.log.bind(this)

const _a = atom({ list: [1,2,3,4], bool: false, key: 'value' })

_a.subscribe(() => l(_a.get())) // will log the state on every change

_a.get('key') // 'value'
const { key } = _a.get() // key === { key: 'value' }

Get $h*t Done! - How to survive in a world of distractions

Why

Morpheus: You have to let it all go, Neo. Fear, doubt, and disbelief. Free your mind.

We live in a world full of distractions - both in our private and professional lives. I'll show you how to keep track of things and focus on what really matters.

Vote for this talk by pushing the ⭐ Star button ↗ on the top right ↗

from keybow_hardware.pim56x import PIM56X as Hardware
from keybow2040 import Keybow2040
import supervisor
import time
import usb_cdc
keybow = Keybow2040(Hardware())
keys = keybow.keys
uart = usb_cdc.serials[1]