Skip to content

Instantly share code, notes, and snippets.

View lsxinh's full-sized avatar

lsxinh@gmail.com lsxinh

View GitHub Profile
@mortcanty
mortcanty / semantic_segmentation.ipynb
Last active July 2, 2024 14:50
Semantic_Segmentation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pamelafox
pamelafox / astronauts.sql
Created March 20, 2020 18:24
NASA astronauts, 1959-Present
/* Source:
https://www.kaggle.com/nasa/astronaut-yearbook
*/
CREATE TABLE astronauts(
Name TEXT PRIMARY KEY,
Year INTEGER,
GroupNum INTEGER,
Status TEXT,
Birth_Date TEXT,
Birth_Place TEXT,
@jeremiahajohnson
jeremiahajohnson / GPStoUTC.py
Last active April 3, 2022 02:33
Python function to take GPS week and GPS seconds and return a UTC datetime string in the format "YYYY-MM-DD HH:MM:SS"
def weeksecondstoutc(gpsweek,gpsseconds,leapseconds):
import datetime, calendar
datetimeformat = "%Y-%m-%d %H:%M:%S"
epoch = datetime.datetime.strptime("1980-01-06 00:00:00",datetimeformat)
elapsed = datetime.timedelta(days=(gpsweek*7),seconds=(gpsseconds+leapseconds))
return datetime.datetime.strftime(epoch + elapsed,datetimeformat)
weeksecondstoutc(1811,164196.732,16) ## --> '2014-09-22 21:36:52'
@kjordahl
kjordahl / GeoSeries.ipynb
Created November 9, 2013 17:02
Working with GeoSeries in GeoPandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epifanio
epifanio / gist:7123965
Created October 23, 2013 18:27
An Open Source Approach to - Seafloor Habitat Mapping
{
"metadata": {
"name": "Seafloor_Habitat_Mapping"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{