Skip to content

Instantly share code, notes, and snippets.

View mdav43's full-sized avatar

Marcus mdav43

View GitHub Profile
---
title: "R Notebook"
output: html_document
---
```{r message=FALSE, warning=FALSE, include=FALSE}
list.of.packages <- c("geojsonio", "leaflet")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages)
@mdav43
mdav43 / merge_overland_geojson.sh
Created September 3, 2021 05:13
Merge overland ios app geojson files into one file.
#!/bin/bash
# A script to combine geojson files produced by Overland iOS app into one file.
if ! command -v jq &> /dev/null
then
echo "jq command could not be found. Ensure it is installed and runnable from current context"
exit
fi
from os import curdir
from os.path import join as pjoin
import sys, datetime, time, glob, os
from systemd import journal
from http.server import BaseHTTPRequestHandler, HTTPServer
class StoreHandler(BaseHTTPRequestHandler):
store_path = pjoin(curdir, 'store')
# in overland the url will be http://yourservername_or_ip:8383/store