Skip to content

Instantly share code, notes, and snippets.

View ShawnMilo's full-sized avatar

Shawn Milochik ShawnMilo

View GitHub Profile
package main
// Delete *.pyc files.
// Basically does this:
// find . -name '*.pyc' -exec rm {} \;
import (
"log" // for writing errors and quitting if something breaks
"os" // for command-line args and getting file info
"path/filepath" // for walking a directory tree
@ShawnMilo
ShawnMilo / validate_uuid4.py
Created December 3, 2013 20:55
Validating a uuid4 with Python.
from uuid import UUID
def validate_uuid4(uuid_string):
"""
Validate that a UUID string is in
fact a valid uuid4.
Happily, the uuid module does the actual
checking for us.
@ShawnMilo
ShawnMilo / tellme
Created April 2, 2013 18:37
sample of a blog post in restructured text
tellme
======
:date: 2013-04-02
:tags: computing, Ubuntu
:category: computing
:slug: tellme
:author: Shawn Milochik
:email: shawn@milochik.com
:summary: "tellme" when you're done