Skip to content

Instantly share code, notes, and snippets.

View johnscillieri's full-sized avatar

John Scillieri johnscillieri

View GitHub Profile
"""Create a SQLite database from the filesystem
Usage:
create_database.py [options] <path>
create_database.py (-h | --help)
create_database.py (-v | --version)
Options:
-l --list List the contents of the database
@johnscillieri
johnscillieri / Gallery.js
Created June 12, 2017 02:57
Javascript for a basic image gallery
@johnscillieri
johnscillieri / Gallery.html
Created June 12, 2017 02:56
HTML for a basic image gallery
@johnscillieri
johnscillieri / convert_args
Last active March 28, 2017 14:27
Convert docopt dictionary args to a namedtuple
def convert_args(dictionary):
''' Convert a docopt dict to a namedtuple '''
new_dict = { key = key.replace("--", "").replace("-", "_").lower()
for key, value in dictionary.items() }
return namedtuple('DocoptArgs', new_dict.keys())(**new_dict)
@johnscillieri
johnscillieri / git-cheat-list.md
Created February 17, 2017 01:08
Git cheat list

Git cheat list

  • all commits that your branch have that are not yet in master

    git log master..<HERE_COMES_YOUR_BRANCH_NAME>
    
  • setting up a character used for comments

git config core.commentchar