Skip to content

Instantly share code, notes, and snippets.

@bmihaylov
bmihaylov / tests.py
Last active August 29, 2015 13:57
Tests for the third homework of the Programming with Python course @ FMI
import unittest
import random
from solution import Card, RANKS, SUITS, CardCollection
from solution import StandardDeck, BeloteDeck, SixtySixDeck
Card.__hash__ = lambda self: 1
@bmihaylov
bmihaylov / getgist
Created March 17, 2014 12:04
Download and unpack a gist with curl
#!/bin/sh
curl "$1/download" | tar zx --strip-components 1