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
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch YOUR_FILE' --prune-empty --tag-name-filter cat -- --all |
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
docker run -itd —net host -p 0.0.0.0:51826:51826 $(find /dev/snd/ -type c | sed ‘s/^/ — device /’) -v /path/to/homebridge/config/folder/:/root/.homebridge hugoch/rpi-python-homebridge:v1 /root/run_homebridge.sh |
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
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "8A:F8:2A:66:42:92", | |
"port": 51826, | |
"pin": "031-45-154" | |
}, | |
"description": "This is an example configuration file with Phillips Hue platform.", |
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 python | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
import pandas as pd | |
from mpl_toolkits.basemap import Basemap | |
import matplotlib.pyplot as plt | |
from matplotlib.colors import Normalize, LinearSegmentedColormap, PowerNorm | |
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 python | |
import pandas as pd | |
from gcmap import GCMapper, Gradient | |
# define CSV colum names | |
CSV_COLS = ('dep_lat', 'dep_lon', 'arr_lat', 'arr_lon', 'nb_flights', 'CO2') | |
routes = pd.read_csv('data.csv', names=CSV_COLS, | |
na_values=['\\N'], sep=';', skiprows=1) |
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 pandas as pd | |
# define the expected CSV columns | |
CSV_COLS = ('airline', 'dep_lat', 'dep_lon', 'arr_lat', | |
'arr_lon', 'nb_flights', 'route') | |
routes = pd.read_csv(in_filename, names=CSV_COLS, na_values=['\\N'], | |
sep=';', skiprows=1) |