View exif.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>h5</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js"></script> | |
<script src="exif.js"></script> | |
<style> | |
#holder { border: 1px dashed #ccc; width: 100px; height: 100px; margin: 20px auto;} | |
#holder.hover { border: 1px dashed #333; } | |
#result .property { width: 100px; } |
View gps_map.py
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 matplotlib.pyplot as plt | |
import contextily as ctx | |
fig = plt.figure(figsize=(20,20)) | |
ax = plt.axes() | |
gdf[gdf.gps_qual > 0].plot(ax=ax, alpha=.2, edgecolor="#ffff", color='red') | |
ctx.add_basemap(ax, source=ctx.providers.Stamen.TonerLite, crs="EPSG:4326", alpha=.3) |
View create_geo_data_frame.py
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 | |
import geopandas as gpd | |
df = pd.DataFrame(coordinates_data) | |
gdf = gpd.GeoDataFrame(df, geometry=gpd.points_from_xy(df.longitude, df.latitude, crs="EPSG:4326")) | |
gdf |
View extract_coord_data.py
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 pynmea2 | |
nmea_data = open("data/gps_data_20220215-070028.nmea", "rb") | |
coordinates_data = [] | |
for message_bytes in nmea_data.readlines(): | |
try: | |
message = message_bytes.decode("utf-8").replace("\n", "").replace("\r", "") | |
parsed_message = pynmea2.parse(message) |
View pynmea.py
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 pynmea2 | |
nmea_data = open("data/gps_data_20220215-070028.nmea", "rb") | |
for message_bytes in nmea_data.readlines()[:10]: # read first 10 messages from file | |
try: | |
message = message_bytes.decode("utf-8").replace("\n", "").replace("\r", "") | |
parsed_message = pynmea2.parse(message) | |
except: | |
# skip invalid messages | |
continue |
View save_nmea_data.py
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 serial | |
import datetime | |
ser = serial.Serial("/dev/cu.usbserial-0001", baudrate=9600) | |
ser.flushInput() | |
ser.flushOutput() | |
idx = 0 | |
nmea_data = b"" |
View gist:1026623
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
<!-- http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/#respond --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#container{ | |
width:400px; |
View gist:1000135
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#map_canvas | |
{ | |
width: 400px; | |
height: 400px; | |
} | |
</style> |
View gist:1037392
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
</style> | |
<!-- JQuery --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"> | |
</script> |
View xml.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> | |
<style> | |
</style> | |
<script> | |
function loadFile() { | |
var input, file, fr; |
NewerOlder