Skip to content

Instantly share code, notes, and snippets.

View ahubers's full-sized avatar

Alex Hubers ahubers

View GitHub Profile
@ahubers
ahubers / ref.py
Last active January 28, 2026 21:54
from copy import copy
class Car:
def __init__(self, velocity=60, capacity=4):
self.velocity = 60
self.capacity = 4
my_car = Car(velocity=30)
### Source
This build order is a combination of:
1. [ReZZeL's Standard Grunts](https://www.youtube.com/watch?v=m6oMSE3WjaU)
2. [WTii's Orc Build Order Guide](https://www.youtube.com/watch?v=s-S6odYyZ4E)
### Standard Grunt
- 6/10 - Alter
- 6/10 - burrow
- 8/10 - barracks
- 10/20 - build hero, use alter constructor to scout

Motivation

SC2 Replay folders become a cluster fuck pretty quickly. I've written a fairly straight-forward, naive approach way of automating your replays to be placed directly into a folder with the date of the replay.

Step 1 -- Github bash

I wrote this in bash because I'd rather chop off my tongue than write a .bat or .exe. So you will need github bash installed on windows. You can download it here: https://gitforwindows.org/

Step 2 -- The naive, stupid command

Now go ahead and go to your replays folder and copy+paste the following into a .sh file. I call it cleanup.sh:

@ahubers
ahubers / My.SC2Hotkeys
Created June 27, 2018 20:52
These are my SC2 hotkeys in case I go to a PC bang and they go missing again
[Settings]
Grid=1
Suffix=_GLS
[Hotkeys]
PTT=
AlertRecall=
ArmySelect=
CameraCenter=Space
ControlGroupAppend0=
@ahubers
ahubers / foobar.py
Last active February 22, 2017 03:59
mapping = {
" ": "000000",
"a": "100000",
"b": "110000",
"c": "100100",
"d": "100110",
"e": "100010",
"f": "110100",
"g": "110110",
"h": "110010",
12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789dfsdfsfasdf012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123