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 | |
class Database(): | |
"""Database Helper class""" | |
def __init__(self): | |
self.conn = None | |
def connect(self, filename): | |
""" Connect the databse handler to a databse """ |
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
# Bring back to nearest git directory | |
# todo limit number of up to "/" | |
function hcd { | |
if [ ! -d .git ]; then | |
up 1 ; hcd | |
fi; | |
} | |
# cd doc | |
function cdoc { | |
hcd; cd doc; |