-
Install Python BeautifulDiscord is created in the Python programming language, and as such you must install it. Open https://www.python.org in your preferred web browser and download the latest version. Install Python and at the end therre should be an option that says something along the lines of
Add to PATH
. If you don't check this, it'll make a future step slightly harder. -
Install BeautifulDiscord Open a command prompt/terminal, and enter
python -m pip install -U https://github.com/leovoel/BeautifulDiscord/archive/master.zip
, this will download and install BeautifulDiscord so that you can use it. If you did not add Python to PATH, navigate to the directory of where Python is installed and run the command. If you get an error while installing that says something along the lines ofMicrosoft Visual C++ 14.0 is required
, follow these steps. A. If you do not have Visual Studio 2015 installed, go to and download the Visual C++ Build Too
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Move/swap windows | |
meh - w : yabai -m window --swap north | |
meh - a : yabai -m window --swap west | |
meh - r : yabai -m window --swap south | |
meh - s : yabai -m window --swap east | |
hyper - w : yabai -m window --warp north | |
hyper - a : yabai -m window --warp west | |
hyper - r : yabai -m window --warp south | |
hyper - s : yabai -m window --warp east |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: The Ultimate Naming Script | |
description: "" | |
author: '' | |
license: '' | |
version: '' | |
last_updated: 2022-03-03 13:29:23 UTC | |
script_language_version: '1.1' | |
script: | | |
$if($gt(%totaltracks%,1),%albumartist% - %album%/,) | |
$if($gt(%totaltracks%,1),$if($gt(%totaldiscs%,1),%discnumber%-,)$num(%tracknumber%, 2),) %artist% - %title% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-psreadlineoption -predictionsource history | |
$asciiSymbols = $false # If your terminal doesn't display unicode properly | |
$esc = [char]27 | |
$r = "$esc[0m" | |
$symbols = @{ | |
pathOpen = if (!$asciiSymbols) { "⌈" } else { "[" }; | |
pathClose = if (!$asciiSymbols) { "⌋" } else { "]" }; | |
timeOpen = if (!$asciiSymbols) { "⌊" } else { "[" }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g symb '▲' | |
set -g leading_brace 0 | |
set -g has_launched 0 | |
function git_info | |
set -l branch (git rev-parse --abbrev-ref HEAD 2> /dev/null) | |
printf "%s(%s%s%s)" $c0 $c1 $branch $c0 | |
set -l changes (git status --porcelain --ignore-submodules 2> /dev/null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Store normal bins | |
alias _cat (which cat) | |
alias _find (which find) | |
alias _grep (which grep) | |
alias _ls (which ls) | |
alias _nano (which nano) | |
# Alias cool and swag bins | |
alias cat 'bat' | |
alias find 'fd' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chunk = (arr, n) => | |
Array.from({ length: Math.ceil(arr.length / n) }, (v, i) => | |
// eslint-disable-next-line no-mixed-operators | |
arr.slice(i * n, i * n + n) | |
); | |
const data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; | |
chunk(data, 2) | |
// Turn each chunk into a function that will await all of its parts to resolve before finishing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Helper for working with `process.stdin` as a char-by-char iterator */ | |
async function* stdin() { | |
process.stdin.setEncoding('utf-8'); | |
process.stdin.resume(); | |
if (process.stdin.isTTY) process.stdin.setRawMode(true); | |
for await (const char of process.stdin) { | |
// raw mode doesn't get set when piping text into stdin, so often text is | |
// given altogether | |
if (char.length > 1) { |
NewerOlder