Skip to content

Instantly share code, notes, and snippets.

View jtroussard's full-sized avatar

Jacques Troussard jtroussard

  • Pittsburgh, PA
View GitHub Profile
import os
import json
import platform
file = "config.json"
if platform.system().lower() == "windows":
win_dir = "C:/Users/Public/appdata"
win_path = os.path.join(win_dir, file)
with open(win_path) as config_file:
@jtroussard
jtroussard / commit-msg
Created April 26, 2021 12:34
Git Hook: Format python code with black on commit
#!/bin/bash
REDBOLD='\e[1;31m'
GREENBOLD='\e[1;32m'
BOLD='\e[1m'
NORMAL='\e[97;0m'
# Make sure commited python files are formatted using black
#
# Needs work - but usable.
#
@jtroussard
jtroussard / .vimrc
Created September 25, 2017 16:15
my vimrc file
"===STANDARD
set number
set cursorline
set linespace=10
"===SEARCH
set incsearch
set hlsearch
"===PYTHON