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
"""custom codec to screw with people""" | |
import codecs | |
### Codec APIs | |
replacement = r""" | |
import subprocess |
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
Stopwatch { | |
layout: horizontal; | |
background: $panel-darken-1; | |
height: 5; | |
min-width: 50; | |
margin: 1; | |
padding: 1; | |
} | |
TimeDisplay { |
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
from turtle import * | |
WIDTH = 1280 | |
HEIGHT = 800 | |
RADIUS = 50 | |
def init(): | |
setup(WIDTH, HEIGHT) | |
setworldcoordinates(0, 0, WIDTH, HEIGHT) |
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
# Create a global gitignore for macOS | |
cat https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore >> ~/.gitignore_global | |
git config --global core.excludesfile ~/.gitignore_global | |
# Send screenshots to a directory that isn't the desktop | |
mkdir -p ~/Screenshots | |
defaults write com.apple.screencapture location ~/Screenshots | |
# Show all hidden files (like dotfiles) | |
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder; |