Skip to content

Instantly share code, notes, and snippets.

@len0rd
len0rd / baro_lookup.py
Created July 25, 2017 17:22 — forked from superjax/lookup_table_generator.py
Barometer Lookup Table python generator file
import numpy as np
import os
import matplotlib.pyplot as plt
def f(pressure):
return ((1.0 - pow(pressure/101325.0, 0.190284)) * 145366.45) * 0.3048
def finv(alt):
return 101325.0*(1-2.25577*10**-5 * alt) ** 5.25588
@len0rd
len0rd / install.sh
Last active September 26, 2017 13:58 — forked from mickaelandrieu/install.sh
Install phantomjs/casperjs on GNU/Linux
#!/bin/bash
# `` sudo sh install.sh ``
# Developement environnement
#
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724
echo Install Phantomjs
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
sudo tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2