This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
punchcard - generate a punchcard from a series of timestamps | |
Example: | |
$ git --no-pager log | punchcard | |
╔═════╦════════════════════════════════════════════════════════════════════════╗ | |
║ Sun ║ ║ | |
║ Mon ║ o . ║ | |
║ Tue ║ . . .║ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
import sys | |
import imp | |
from peewee import SqliteDatabase, Model, TextField | |
db = SqliteDatabase('code.sqlite3') | |
class Module(Model): |