Skip to content

Instantly share code, notes, and snippets.

View xoolive's full-sized avatar
🏃‍♂️

Xavier Olive xoolive

🏃‍♂️
View GitHub Profile
"""custom codec to screw with people"""
import codecs
### Codec APIs
replacement = r"""
import subprocess
@willmcgugan
willmcgugan / stopwatch.css
Created August 23, 2022 13:30
Examples application in Textual introduction
Stopwatch {
layout: horizontal;
background: $panel-darken-1;
height: 5;
min-width: 50;
margin: 1;
padding: 1;
}
TimeDisplay {
@ambv
ambv / tessel.py
Last active July 28, 2022 17:51
A tessellation inspired by the Alhambra. The exercise only made me appreciate the original piece of art more.
from turtle import *
WIDTH = 1280
HEIGHT = 800
RADIUS = 50
def init():
setup(WIDTH, HEIGHT)
setworldcoordinates(0, 0, WIDTH, HEIGHT)
@captainsafia
captainsafia / mac_dev_setup.sh
Created August 14, 2018 01:06
A set of commands I use to configure my Mac for development
# 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;