Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
[!WARNING]
Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
[!WARNING]
/** | |
* A typeguard to check if a value is valid entry in an Enum. | |
* If it passes, the value will be typed as the enum | |
* @param value value to check | |
* @param enumType Enum to check against | |
* @returns boolean and assigns type to value | |
* @example | |
* ```ts | |
* enum TestEnum { | |
* Value1 = 'Value1', |
// @ts-check | |
/** | |
* @typedef {string | number | boolean | null | undefined} Primitive | |
*/ | |
/** | |
* @template { Primitive } T | |
* @template {T | Record.<string,T>} R | |
* @param {R} v |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim |
#!/bin/bash | |
while IFS="," read -r user boosts notify lang | |
do | |
echo "refreshing $user..." | |
RAILS_ENV=production /home/mastodon/live/bin/tootctl accounts refresh $user | |
done < <(tail -n +2 following.csv) |
#!/bin/bash | |
# Delete all cached headers | |
rm -rf /home/mastodon/live/public/system/cache/accounts/headers/* | |
# Prune remote accounts that never interacted with a local user | |
RAILS_ENV=production /home/mastodon/live/bin/tootctl accounts prune; | |
# Remove remote statuses that local users never interacted with older than n days | |
RAILS_ENV=production /home/mastodon/live/bin/tootctl statuses remove --days 7; |
import { useState } from 'react' | |
const Counter = () => { | |
const [state, setState] = useState(0) | |
return ( | |
<> | |
<h1>Counter</h1> | |
<p>{state}</p> | |
<button onClick={() => setState(state + 1)}>+</button> |
find . -type f -name '*~' -delete |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |