Skip to content

Instantly share code, notes, and snippets.

@softplus
softplus / gist:4478287922aec52976a3d9e720a398b1
Created February 9, 2024 15:31
Extract all unique links from the current page using Chrome Devtools
// JavaScript, of course
const urls = [...new Set($$('a').map((x) => x.href))]
// for non-Devtools usage (extension, etc), use document.getElementsByTagName('a') instead of $$('a')
// ... and spread them into an array:
const urls = [...new Set([...document.getElementsByTagName('a')].map((x) => x.href))]
@softplus
softplus / keymap.h
Created September 25, 2022 14:54
keymap.h from basic QMK keyboard
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
*
*/
[0] = LAYOUT_ortho_1x3(
KC_A, KC_B, KC_C
)
};
@softplus
softplus / info.json
Created September 25, 2022 14:53
info.json for QMK basic keyboard
{
"manufacturer": "softplus",
"keyboard_name": "00test",
"maintainer": "softplus",
"bootloader": "caterina",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,