Skip to content

Instantly share code, notes, and snippets.

View the-mace's full-sized avatar

Rob the-mace

View GitHub Profile
@the-mace
the-mace / add_watermarks.py
Created January 8, 2017 19:47
Watermark a bunch of files
#!/usr/bin/env python
# encoding: utf-8
"""
add_watermarks.py
Copyright (c) 2017 Rob Mason
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
@the-mace
the-mace / gist:4b28a75e5897937afcc686597dec15e0
Created February 17, 2017 14:07
Tesla Charge Time Calculation
def calculate_charge_time(self, log, starting_range, kwh_needed, cold_pack=False, charger_type="supercharger"):
'''
Data via TMC thread:
super: {
efficiency: 0.93,
chargeRate1: 114.1,
chargeRate2: 50.4, // kW/hour
dropoff: 150, // dropoff distance in miles
image: IMAGES[MODEL]["super"]
}