❯ defaults read com.apple.touchbar.agent
{
PresentationModeFnModes = {
appWithControlStrip = functionKeys;
};
PresentationModeGlobal = appWithControlStrip;
PresentationModePerApp = {
"com.hnc.Discord" = functionKeys;
"com.hnc.DiscordPTB" = functionKeys;
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
// Load up the discord.js library | |
const Discord = require("discord.js"); | |
// This is your client. Some people call it `bot`, some people call it `self`, | |
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`, | |
// this is what we're refering to. Your client. | |
const client = new Discord.Client(); | |
// Here we load the config.json file that contains our token and our prefix values. | |
const config = require("./config.json"); |
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
[ | |
"Has anyone told you you’re awesome today?", | |
"Why, hello there.", | |
"You look really smart from this angle.", | |
"The sound of your voice is so soothing.", | |
"You’re so great at everything. Is there anything you can’t do?", | |
"You’re such a smooth talker.", | |
"The world without you is like a broken pencil, pointless.", | |
"You would be the last one standing in a horror movie.", | |
"Every other country is super jealous that you’re a citizen of this country.", |
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
module Main where | |
import Control.Arrow ((&&&)) | |
import Data.List (group, sort) | |
import Text.Printf (printf) | |
type EnchantmentLevel = Int | |
levelProbs :: [(EnchantmentLevel, Double)] | |
levelProbs = (head &&& (/total) . fromIntegral . length) |
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
#!/usr/bin/env zsh | |
xhs www.coronavirus.vic.gov.au/sdp-ckan resource_id==afb52611-6061-4a2b-9110-74c920bede77 limit==0 | fx .result.total |
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
# https://github.com/NixOS/nix/issues/3261 | |
# sudo ln -sf /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt | |
# https://discourse.nixos.org/t/nix-flake-and-fetcher-cache-v1-sqlite/8958 | |
# (local u="$(whoami); sudo chown "$u:users" ~/.cache/nix) | |
# https://github.com/numtide/nix-unstable-installer | |
sh <(curl -L https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211026_5667822/install) --daemon | |
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# The GraphQL query could also be inlined instead of referencing the file, but | |
# I kept it in a separate file for syntax highlighting and stuff | |
xhs \ | |
--check-status --ignore-stdin --timeout 2.5 \ | |
example.instructure.com/api/graphql Authorization:"Bearer $CANVAS_TOKEN" query=@query.graphql \ | |
| fx .data Object.entries '.forEach(([subject, {grades: {currentScore}}]) => console.log(`${subject}: ${currentScore === null ? "--" : `${String(currentScore).padEnd(5, "0")}%`}`))' 2> /dev/null \ | |
| column -t |
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
{ | |
"HYPESQUAD_QUESTION_0_PROMPT": "Which insult would hurt you the most?", | |
"HYPESQUAD_QUESTION_0_RESPONSE_A": "You overreact a lot.", | |
"HYPESQUAD_QUESTION_0_RESPONSE_B": "You don't listen enough.", | |
"HYPESQUAD_QUESTION_0_RESPONSE_C": "You only care about yourself.", | |
"HYPESQUAD_QUESTION_0_RESPONSE_D": "You're ordinary.", | |
"HYPESQUAD_QUESTION_1_PROMPT": "What sounds like a perfect day to you?", | |
"HYPESQUAD_QUESTION_1_RESPONSE_A": "Sleeping in, having a giant, homemade lunch, and heading out to meet up with close friends late at night.", | |
"HYPESQUAD_QUESTION_1_RESPONSE_B": "Waking up early, finishing something you've been putting off for a while, and working on a new hobby in the late afternoon.", | |
"HYPESQUAD_QUESTION_1_RESPONSE_C": "Waking up on time, walking to the garden store and buying a new plant, and sinking deep into a bath to end the day.", |
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
{ | |
"PRIMARY_DARK_100": "#f6f6f7", | |
"PRIMARY_DARK_130": "#eff0f0", | |
"PRIMARY_DARK_160": "#e6e6e8", | |
"PRIMARY_DARK_200": "#dcddde", | |
"PRIMARY_DARK_230": "#d1d3d5", | |
"PRIMARY_DARK_260": "#c6c8ca", | |
"PRIMARY_DARK_300": "#b9bbbe", | |
"PRIMARY_DARK_330": "#a3a6aa", | |
"PRIMARY_DARK_360": "#8e9297", |
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
{ | |
"LOADING_LINE_1": "Discord was almost called Bonfire before we picked our name. It was meant to be nice and cozy.", | |
"LOADING_LINE_2": "Discord was almost called Wyvern before we picked our name. Not too proud of that one.", | |
"LOADING_LINE_3": "Our logo's name is Clyde.", | |
"LOADING_LINE_4": "There are a bunch of hidden \"Easter Eggs\" in the app that happen when you click certain things...", | |
"LOADING_LINE_5": "Discord started as a game company making a mobile game called Fates Forever.", | |
"LOADING_LINE_6": "Discord’s official birthday is May 13, 2015.", | |
"LOADING_LINE_7": "We came up with the idea of Discord Nitro over morning breakfast potatoes.", | |
"LOADING_LINE_8": "Our mascot, Wumpus, was originally created as a character with no friends :(", | |
"LOADING_LINE_9": "In Discord's early days, light theme was the only theme. Dark theme didn't arrive until August 2015.", |
OlderNewer