Skip to content

Instantly share code, notes, and snippets.

@atarola
atarola / spaceships.py
Last active August 30, 2020 01:30
Pixel Spaceships!
#!/usr/bin/env python
import random
import pygame
from pygame.locals import *
#
# Pixel Spaceships!
# Original Idea: http://web.archive.org/web/20080228054410/http://www.davebollinger.com/works/pixelspaceships/
@atarola
atarola / git_clean.sh
Last active February 14, 2017 18:19
Cleanup a Repo
#!/bin/bash
#
# Cleanup both local and remote branches that have been merged to master
#
PREFIX="remotes/origin/"
# make sure you're on master
git checkout master
#!/usr/bin/env python
import argparse
import os
import random
import time
from multiprocessing import Process, JoinableQueue, Lock
#
# do a thing in multiple processes