Skip to content

Instantly share code, notes, and snippets.

View lee2sman's full-sized avatar

Lee T lee2sman

  • W/O/R/L/D/W/I/D/E
View GitHub Profile
@lee2sman
lee2sman / game_collision.cs
Last active April 24, 2020 16:25
gabe unity starter
GameObject g = GameObject.Find("face");
GameObject h = GameObject.Find("face2");
void OnCollisionEnter(Collision collision) {
if (collision.gameObject.tag == "switch")
{
//turn animation component off
g.GetComponent<"Doodle Animator">().enabled= false;
h.GetComponent<"Static Face">().enabled= true;
@lee2sman
lee2sman / smallfile.sh
Created April 24, 2020 21:48
quick and dirty oneliner to bitcrush a video to about 1mg per minute for smallfile.ca entries
ffmpeg -i input.mp4 -vcodec h264 -b:v 5k -acodec mp2 -ab 56k output.mp4
@lee2sman
lee2sman / apr30-newdirections.md
Last active April 30, 2020 20:56
Class notes for April 30

April 30, 2020 - New Directions in Virtual Space

News!

New Discord server! It's a chat group. It's like Slack! It's popular in game communities! It's optional!

Join here.

Senior project 'games and virtual spaces' highlights:

@lee2sman
lee2sman / suny-syllabi-design-links.md
Last active July 2, 2020 19:32
Reformulating syllabi for online learning, via SUNY (and w/ OSCQR Syllabus design system)
@lee2sman
lee2sman / nice-jekyll-themes.md
Last active September 1, 2020 06:06
a list of jekyll themes that actually look god

Nice jekyll themes

Use any theme with Jekyll-GitHub pages

blog post

tl;dr:

remote_theme: owner/theme-repo-name
@lee2sman
lee2sman / journal.fish
Last active October 30, 2020 20:00
fish script for writing 750words (approx 3 pages) a day
#!/usr/bin/env fish
# note: all progress saved whether you hit 750 words or not
# replace with location of journal
set journal ~/.journal.txt
# start
echo "today's 750 words..."
#!/usr/bin/bash
## A hack to export all image files to a json list
# find name of last file in directory
declare -a files
files=(img/*)
pos=$(( ${#files[*]} - 1 ))
last=${files[$pos]}
@lee2sman
lee2sman / game.txt
Created August 6, 2021 00:35
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[2764,"0",11,"7",147,"0",14,"7",144,"0",17,"7",141,"0",20,"7",138,"0",22,"7",136,"0",12,"7",7,"0",6,"7",134,"0",11,"7",9,"0",7,"7",132,"0",10,"7",12,"0",6,"7",131,"0",9,"7",15,"0",6,"7",129,"0",8,"7",17,"0",6,"7",128,"0",7,"7",20,"0",6,"7",126,"0",7,"7",21,"0",6,"7",125,"0",7,"7",23,"0",5,"7",125,"0",6,"7",24,"0",5,"7",125,"0",5,"7",25,"0",6,"7",124,"0",5,"7",25,"0",6,"7",124,"0",5,"7",26,"0",5,"7",124,"0",5,"7",26,"0",5,"7",125,"0",3,"7",27,"0",6,"7",154,"0",6,"7",155,"0",6,"7",154,"0",6,"7",155,"0",6,"7",154,"0",6,"7",155,"0",6,"7",154,"0",6,"7",155,"0",5,"7",155,"0",6,"7",154,"0",9,"7",152,"0",12,"7",148,"0",28,"7",133,"0",29,"7",133,"0",28,"7",135,"0",26,"7",138,"0",23,"7",153,"0",8,"7",154,"0",7,"7",154,"0",7,"7",154,"0",7,"7",154,"0",7,"7",154,"0",6,"7",155,"0",7,"7",153,"0",9,"7",152,"0",9,"7",152,"0",11,"7",17,"0",6,"7",127,"0",13,"7",11,"0",10,"7",128,"0",13,"7",6,"0",13,"7",130,"0",30,"7",131,"0",28,"7",135,"0",21,"7",142,"0",15,"7",147,"0",10,"7",4998,"0
@lee2sman
lee2sman / game.txt
Created August 6, 2021 00:35
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[2764,"0",11,"7",147,"0",14,"7",144,"0",17,"7",141,"0",20,"7",138,"0",22,"7",136,"0",12,"7",7,"0",6,"7",134,"0",11,"7",9,"0",7,"7",132,"0",10,"7",12,"0",6,"7",131,"0",9,"7",15,"0",6,"7",129,"0",8,"7",17,"0",6,"7",128,"0",7,"7",20,"0",6,"7",126,"0",7,"7",21,"0",6,"7",125,"0",7,"7",23,"0",5,"7",125,"0",6,"7",24,"0",5,"7",125,"0",5,"7",25,"0",6,"7",124,"0",5,"7",25,"0",6,"7",124,"0",5,"7",26,"0",5,"7",124,"0",5,"7",26,"0",5,"7",125,"0",3,"7",27,"0",6,"7",154,"0",6,"7",155,"0",6,"7",154,"0",6,"7",155,"0",6,"7",154,"0",6,"7",155,"0",6,"7",154,"0",6,"7",155,"0",5,"7",155,"0",6,"7",154,"0",9,"7",152,"0",12,"7",148,"0",28,"7",133,"0",29,"7",133,"0",28,"7",135,"0",26,"7",138,"0",23,"7",153,"0",8,"7",154,"0",7,"7",154,"0",7,"7",154,"0",7,"7",154,"0",7,"7",154,"0",6,"7",155,"0",7,"7",153,"0",9,"7",152,"0",9,"7",152,"0",11,"7",17,"0",6,"7",127,"0",13,"7",11,"0",10,"7",128,"0",13,"7",6,"0",13,"7",130,"0",30,"7",131,"0",28,"7",135,"0",21,"7",142,"0",15,"7",147,"0",10,"7",4998,"0
@lee2sman
lee2sman / setting-up-i3-for-dvorak.md
Last active September 6, 2024 12:38
I cobbled together a method to install i3 window manager for Dvorak

Setting up i3 when you use Dvorak

The process to set up i3 for use by Dvorak users is maddening and works unlike any other window manager or software I've used previously. It's especially difficult for me since I don't remember QWERTY anymore (it's been 14 years for me) and I have Dvorak positioned keys on my keyboard.

Anyway, here is the unpleasant process to get it to work at a bare minimum. I haven't found this documented in a single place elsewhere, and the steps usually assume that you understand how to do something in i3 already.

Download and install i3. I read you need these other packages as well. I'm coming from Ubuntu.

sudo apt install i3 i3status dmenu i3lock xbacklight feh