Skip to content

Instantly share code, notes, and snippets.

View qazwsxal's full-sized avatar

Adam Leach qazwsxal

View GitHub Profile
@qazwsxal
qazwsxal / fs2_profile.py
Created February 15, 2023 21:01
Plot graph of FS2 profiling information, includes 10th and 90th percentiles
import numpy as np
import matplotlib.pyplot as plt
import sys
averageTime = 0.5
NANOSECONDS_PER_SECOND = 1_000_000_000.
normalLabel = sys.argv[1]
changedLabel = sys.argv[2]
@qazwsxal
qazwsxal / gym-demo.ipynb
Last active January 28, 2023 13:56
OpenAI Gym Lab Demo (Durham Students Click Here!)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec /home/adam/bin/pacvol.sh up
bindsym XF86AudioLowerVolume exec /home/adam/bin/pacvol.sh down
bindsym XF86AudioMute exec /home/adam/bin/pacvol.sh toggle
# Media player controls
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
" Basics
syntax on
filetype plugin on
set hidden
" Vundle setup
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize