¯_(ツ)_/¯
This file contains hidden or 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
| # ~/.tmux.conf | |
| # shell / terminal | |
| set -g default-shell /bin/zsh | |
| set -g default-terminal "tmux-256color" | |
| set -ga terminal-overrides ",xterm-256color:Tc" | |
| # behavior | |
| set -g mouse on | |
| set -g mode-keys vi |
This file contains hidden or 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
| # Warning: This config does not include keys that have an unset value | |
| # $all is shorthand for $username$hostname$localip$shlvl$singularity$kubernetes$nats$directory$vcsh$fossil_branch$fossil_metrics$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$pijul_channel$docker_context$package$bun$c$cmake$cobol$cpp$daml$dart$deno$dotnet$elixir$elm$erlang$fennel$gleam$golang$gradle$haskell$haxe$helm$java$julia$kotlin$lua$mojo$nim$nodejs$ocaml$odin$opa$perl$php$pulumi$purescript$python$quarto$raku$rlang$red$ruby$rust$scala$solidity$swift$terraform$typst$vlang$vagrant$zig$buf$guix_shell$nix_shell$conda$pixi$meson$spack$memory_usage$aws$gcloud$openstack$azure$direnv$env_var$mise$crystal$custom$sudo$cmd_duration$line_break$jobs$battery$time$status$container$netns$os$shell$character | |
| "$schema" = "https://starship.rs/config-schema.json" | |
| format = """ | |
| [╭╴](fg:arrow)$username$directory$time($git_branch$git_status)($python$nodejs)$cmd_duration | |
| [╰─](fg:arrow)$character""" | |
| right_format = "" | |
| continuation_prompt = "[∙ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| # singleton.py | |
| class Logger: | |
| """Simple singleton logger.""" | |
| _instance = None | |
| def __new__(cls): | |
| if cls._instance is None: | |
| cls._instance = super().__new__(cls) | |
| cls._instance.logs = [] | |
| return cls._instance |
-
Sunk-Cost Fallacy: Feeling like you need to buy the car because you’ve already spent so much time at the dealership.
-
Anchoring Bias: Getting stuck on the first price you hear and letting it shape all your other decisions.
-
Confirmation Bias: Only paying attention to information that supports your desire to buy the car you want.
-
Availability Heuristic: Basing your decision on a recent story or experience, like a friend’s good or bad deal, rather than the full picture.
This file contains hidden or 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
| import processing.sound.*; | |
| FFT fft; | |
| AudioIn in; | |
| int bands = 512; | |
| float[] spectrum = new float[bands]; | |
| void setup() { | |
| size(512, 600); | |
| background(255); |
This file contains hidden or 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
| \documentclass[a4paper]{article} | |
| \usepackage{tikz} | |
| \usepackage[left=0cm,top=2cm,right=0cm,bottom=0cm,nohead,nofoot]{geometry} | |
| \usepackage{xcolor} | |
| \begin{document} | |
| \begin{tikzpicture} | |
| \pgfmathsetmacro{\r}{3} | |
| % Given that A4 paper is 21cm x 29.7 cm, we can calculate the maximum number of circles that will fit on the page based on the radius |
This file contains hidden or 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
| from random import choice | |
| from functools import reduce | |
| with open('mobypos.txt', 'r', encoding='latin1') as f: | |
| moby_words = [line.strip() for line in f.readlines()] | |
| words = [dict(zip(['word', 'pos'], moby_word.split('\\'))) for moby_word in moby_words] | |
| pos_key = { | |
| 'Noun': 'N', |
NewerOlder