Skip to content

Instantly share code, notes, and snippets.

@Enichan
Enichan / browser_gamepad_id.txt
Created October 19, 2018 04:48
Gamepad id output for various controllers/gamepads across browsers, with regexes for how to get name, vendor id, and product id
This is output from the gamepad API's id property tested across a variety of browsers, along with regular expressions to
find the name, vendor id, and product id.
Chrome: Logitech Dual Action (STANDARD GAMEPAD Vendor: 046d Product: c216)
Xbox 360 Controller (XInput STANDARD GAMEPAD)
Wireless Controller (STANDARD GAMEPAD Vendor: 054c Product: 05c4)
Sony PLAYSTATION(R)3 Controller (STANDARD GAMEPAD Vendor: 054c Product: 0268)
Pro Controller (Vendor: 057e Product: 2009)
8Bitdo SF30 Pro (Vendor: 2dc8 Product: 6000)
Firefox: 046d-c216-Logitech Dual Action
@nondebug
nondebug / known_gamepads.txt
Last active April 12, 2024 03:39
A list of vendor and product IDs for known USB and Bluetooth gamepad devices
0000:006f JessTechColourRumblePad
0001:0329 Sl6566
0005:05ac Mocute
0010:0082 AkishopCustomsPs360Plus
0078:0006 MicrontekUsbJoystick
0079:0006 PcTwinShock
0079:0011 DragonRiseGamepad
0079:1800 MayflashWiiUProAdapter
0079:181a VenomLimitedArcadeJoystick
0079:181b VenomArcadeJoystick
@paulallies
paulallies / gist:0052fab554b14bbfa3ef
Last active November 12, 2023 23:00
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin <branch-name>
@staltz
staltz / introrx.md
Last active May 6, 2024 01:44
The introduction to Reactive Programming you've been missing
@jareware
jareware / SCSS.md
Last active April 23, 2024 22:13
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso