Skip to content

Instantly share code, notes, and snippets.

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 12, 2025 13:04
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@primaryobjects
primaryobjects / mouse.gif
Last active June 27, 2022 18:24
View the mouse pointer position in Selenium Nightwatch. Execute this code when the page loads or in the javascript console. See https://stackoverflow.com/a/35867777
mouse.gif
@simenbrekken
simenbrekken / README.md
Last active October 11, 2017 16:23
Express.js brute-force ☕️-reloading

This neat little script let's you develop Express apps without using something like nodemon to reload your server between changes.

Usage:

  1. Put dev.js outside your project source folder, scripts/dev.js is what I'm using.
  2. Make sure your actual app in src/index.js exports the Express instance itself without listening:
import express from 'express'
{
"title": "Leopold FC660 Capslock to FN w/ function keys and escape",
"rules": [
{
"description": "Map capslock to fn",
"manipulators": [
{
"conditions": [{ "type": "device_if", "identifiers": [{
"product_id": 257, "vendor_id": 1204
}]}],
/*
# Clean UI programming in a vacuum
This app was written for Chapter 19 in the 3rd edition of Eloquent
JavaScript—it aims to demonstrate modern UI programming without
depending on a specific framework or library.
Its convention is that components have an interface like this:
```
@KiaraGrouwstra
KiaraGrouwstra / arch.sh
Last active September 26, 2022 18:36
Arch install notes
# follow https://www.addictivetips.com/ubuntu-linux-tips/how-to-install-arch-linux/, except:
# - use `/dev/sdb`
# - let ext4 get 100%, not swap
# - ditch grub for systemd-boot, see https://www.addictivetips.com/ubuntu-linux-tips/set-up-systemd-boot-on-arch-linux/
# - in install step swap `xorg-server-utils` for `xorg-apps` -- just in case also install `dialog`, `dhcpcd`, `linux-firmware` and `wpa_supplicant`
# also see: https://wiki.archlinux.org/index.php/Installation_guide
# bluetooth
sudo pacman -S bluez bluez-utils
systemctl enable bluetooth
@Temikus
Temikus / Brewfile
Created October 25, 2021 04:56
Artem's Brewfile
# Common taps
tap "homebrew/cask-versions"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/core"
# Runtimes - python
brew "[email protected]"
brew "pylint"