Skip to content

Instantly share code, notes, and snippets.

let array = [1, 2, 3, 4, 5];
let add = (x, y) => x + y;
let sum = array.reduce(add, 0);
// This will do:
// 0 + 1
// 1 + 2
// 3 + 3
// 6 + 4
// 10 + 5
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 8, 2025 21:33
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active December 8, 2025 11:26
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active December 8, 2025 10:50
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