Skip to content

Instantly share code, notes, and snippets.

@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active April 26, 2024 03:53
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@sindresorhus
sindresorhus / esm-package.md
Last active April 26, 2024 03:53
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@rxaviers
rxaviers / gist:7360908
Last active April 26, 2024 03:51
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

Drew's Pet Store

CodePen Challenge: September 2023
Navigation – Complex Navigation

View in Full Page for best experience

Illustrations by Icons 8 from Ouch!

@ArtBIT
ArtBIT / GRUB_INIT_TUNE.md
Last active April 26, 2024 03:49
A collection of GRUB init tunes
@vratiu
vratiu / .bash_aliases
Last active April 26, 2024 03:47
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@StringKe
StringKe / focusPropAtom.ts
Created April 26, 2024 03:40
[Jotai Atom] Atomic implementations that allow parent objects to be potentially null
type PickProp<T, K> = K extends keyof NonNullable<T>
? T extends undefined
? NonNullable<T>[K] | undefined
: NonNullable<T>[K]
: undefined;
export function focusPropAtom<Store, Result, Key extends keyof NonNullable<Store>>(
baseAtom: WritableAtom<Store, [SetStateAction<Store>], Result>,
path: Key,
) {