Skip to content

Instantly share code, notes, and snippets.

View markbneal's full-sized avatar

Mark Neal markbneal

View GitHub Profile
@WayneAHof
WayneAHof / Sample Plotting Example.R
Created August 14, 2024 22:17
Sample script to create ggplots incorporating RMSE, MBE and NSE (based on COD method) plus an example of how to create an animated plot and interactive plot
# Libraries ----
library(dplyr)
library(ggplot2) # Plotting data
library(ggrepel) # Prevent overlapping text labels
library(Metrics) # Calculate Statistics
library(plotly) # Interactive plots
library(gganimate) # Animate plots
# Sample Statistical Plots ----
# Create sample data
@Charlotte1688
Charlotte1688 / R_community_maps
Created March 24, 2023 02:15
DairyNZ R community March 2023 Map code
#R community code
#Packages
library(tidyverse)
library(readxl)
library(leaflet)
library(sp)
#Make dummy data
@tylermorganwall
tylermorganwall / humanity_globe.R
Created August 17, 2021 14:37
3D Humanity Globe
library(rayshader)
library(rayrender)
popdata = raster::raster("gpw_v4_population_density_rev11_2020_15_min.tif")
population_mat = rayshader:::flipud(raster_to_matrix(popdata))
above1 = population_mat > 1
above5 = population_mat > 5
above10 = population_mat > 10
@norwegianblueparrot
norwegianblueparrot / bourtange.R
Last active November 25, 2023 03:40
A script to produce a 3D render of Fort Bourtange from LiDAR data
## ----setup,include=FALSE,message=FALSE,warning=FALSE-----------------------------------------------------------------------------------------------------------------------------------------------------
library("here") # 1.0.1
library("sf") # 1.0-14
library("rgl") # 1.2.1
library("geoviz") # 0.2.2
library("raster") # 3.6-26
library("rayshader") # 0.35.7
library("osmdata") # 0.2.5
library("tidyverse") # 2.0.0
@eneko
eneko / list-of-curl-options.txt
Last active November 11, 2024 18:00
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@tonyerskine
tonyerskine / README.MD
Last active February 22, 2024 13:14
Windows Script to Convert Excel Files to CSV

Instructions

  1. Copy both files into the directory containing the files you want converted
  2. Run excel-to-csv.bat

Note: This script requires Excel to be installed.