Skip to content

Instantly share code, notes, and snippets.

View ExperimentMonty's full-sized avatar

John Montgomery ExperimentMonty

View GitHub Profile

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
from random import shuffle
total_moves = 0
push_moves = 0
def play_round():
global total_moves
global push_moves
deck = 4 * [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
shuffle(deck)