Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
barbietunnie / additional_notes.md
Last active June 26, 2024 01:20 — forked from JaisonBrooks/remove_input_number_scroll.js
Disable Input[type=number] scroll action

Disable Input[type=number] scroll action

WebKit desktop browsers add little up down arrows to number inputs called spinners.

These spinners have their value changed inadvertently when the scroll wheel is active on the number field. To prevent this from happen, you may choose to prevent this functionality, even though it ignores accessibility considerations.

Here are further discussions regarding this:

let Gpio
const express = require('express')
const router = express.Router()
// Onoff cannot be installed on devices without Gpio
try {
Gpio = require('onoff').Gpio
} catch (err) {
Gpio = {
accessible: false
@d3noob
d3noob / .block
Last active November 23, 2024 20:25
Collapsible tree diagram in v7
license: mit
@philhartung
philhartung / aes67.py
Created December 8, 2021 15:33
Simple AES67 implementation using gstreamer. Does not implement any discovery.
import sys
import gi
gi.require_version('Gst', '1.0')
gi.require_version('GstNet', '1.0')
from gi.repository import Gst, GstNet, GObject, GLib
Gst.init([])
mainloop = GLib.MainLoop()