Skip to content

Instantly share code, notes, and snippets.

View LandonPowell's full-sized avatar
🏴
Nestor Makhno's Ghost 2020

Landon J. Powell LandonPowell

🏴
Nestor Makhno's Ghost 2020
View GitHub Profile
@LandonPowell
LandonPowell / visualize.py
Created June 30, 2017 15:17
Very simple, very shitty, Python Audio Visualizer PROOF OF CONCEPT.
import pygame, sys, random, colorsys
from pygame import gfxdraw
from pygame.locals import *
pygame.init()
canvas = pygame.display.set_mode((750, 750))
center = canvas.get_rect().center
pygame.display.set_caption("Visualization")
def hsv2rgb(h, s, v):
@LandonPowell
LandonPowell / xmonad.hs
Created July 3, 2017 12:28
My `~/.xmonad/xmonad.hs` configuration file for xmonad.
import XMonad
import XMonad.Layout.Spacing
import XMonad.Layout.Gaps
import qualified Data.Map as M
import qualified XMonad.StackSet as W
myLayoutHook = gaps [(U,30), (R,30), (D,30), (L,30)] $ spacing 20 $ Tall 1 (3/100) (1/2)
myKeys conf@XConfig {XMonad.modMask = modMask} = M.fromList $ [
((0, 0x1008FF11), spawn "amixer set Master 2-"),
@LandonPowell
LandonPowell / 8bitKeyboard.py
Created April 2, 2018 12:07
Never take your tippy typers off the home row again! ASDFJKL; are now mod keys! Hold 'em down then press spacebar.
# 8 mod keys and one real key.
# Minimalist typing scheme.
# Never move your hands off the home row.
# Requires https://pypi.python.org/pypi/keyboard/
# EXAMPLE :
# For the letter 'A', the binary is 0100 0001
# Hold down 's' and semicolon, and then press Space.