Skip to content

Instantly share code, notes, and snippets.

View SimonGoring's full-sized avatar

Simon SimonGoring

View GitHub Profile
@SimonGoring
SimonGoring / LICENSE.txt
Last active April 29, 2024 16:55
A GIST to show how to cite Neotoma datasets, including DOIs, when dataset IDs have been provided.
Copyright 2024, Simon James Goring
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
This file has been truncated, but you can view the full file.
{"name":["All Taxa"],"taxonid":[0],"taxongroup":["None"],"children":[{"name":["Betula mean pollen-grain diameter"],"taxonid":[30],"taxongroup":["BIM"]},{"name":["Indeterminable"],"taxonid":[312],"taxongroup":["UPA"],"children":[{"name":["Indeterminable undiff."],"taxonid":[905],"taxongroup":["UPA"]},{"name":["Indeterminable (triporate)"],"taxonid":[2963],"taxongroup":["UPA"]},{"name":["Indeterminable (reticulate)"],"taxonid":[19659],"taxongroup":["UPA"]},{"name":["Indeterminable (corroded)"],"taxonid":[34334],"taxongroup":["UPA"]},{"name":["Indeterminable (broken)"],"taxonid":[34946],"taxongroup":["UPA"]},{"name":["Indeterminable (unknown)"],"taxonid":[35429],"taxongroup":["UPA"]},{"name":["Indeterminable (concealed)"],"taxonid":[35430],"taxongroup":["UPA"]},{"name":["Indeterminable (degraded)"],"taxonid":[35431],"taxongroup":["UPA"]},{"name":["Indeterminable (unidentified)"],"taxonid":[35432],"taxongroup":["UPA"]},{"name":["Indeterminable (crumpled)"],"taxonid":[35433],"taxongroup":["UPA"]},{"name":["Indeter
@SimonGoring
SimonGoring / githubkeywords.csv
Created February 16, 2022 19:53
Throughput Database Github Keywords
keyword keyword_count
r 947
python 356
rstats 353
bioinformatics 232
r-package 217
machine-learning 206
data-science 174
data 111
data-visualization 105
@SimonGoring
SimonGoring / 01_native_land_circlepackeR.R
Last active February 3, 2022 18:18
R code to create a packed circle plot showing the Neotoma Paleoecology Database (https://neotomadb.org) holdings across Indigenous territories as represented in the Native Land Digital project.
# This script generates a stacked-circle plot using data from the
# Neotoma Paleoecology Database and the Native Land Digital dataset
# https://native-land.ca/
# Code by: Simon J Goring
# I acknowledge my presence as a settler in unceeded territory, and
# undertake this work with humility towards those for whom the effects
# of colonialism are a lived experience.
pacman::p_load_gh("jeromefroe/circlepackeR")
pacman::p_load(jsonlite, sf, geojsonsf, purrr, dplyr, data.tree, treemap)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SimonGoring
SimonGoring / README.md
Created June 9, 2021 17:46
Condenser config File
@SimonGoring
SimonGoring / output.bib
Created May 26, 2020 02:28
Losing Journal title?
@article{Goring2020Some,
publisher = {GitHub},
title = {Some Github Repo},
url = {https://github.com/SimonGoring/MadeUpRepo},
author = {Goring, Simon},
date = {2020},
year = {2020},
}
@SimonGoring
SimonGoring / 01_SGoringPAGES_ECR.md
Last active January 29, 2019 00:00
Getting ready for the PAGES ECR Webinar

Getting From There to Here

This webinar is set up as a "storytelling" session, about how I work through my projects that are intended for publication. In practice this is now how I manage most of my projects that involve some element of data exploration and collaboration. I will be live-coding during the presentation and intend to do so in a way that will allow people to follow along to some degree.

The webinar will be recorded and so people should not feel obligated to code along, or to keep up. If you would like to follow along, or revisit the webinar at a later date, these are the programs and R packages that you will need.

Important Links

@SimonGoring
SimonGoring / DataTypesinPython.ipynb
Created October 2, 2018 04:54
Loading yaml, csv, json and json-ld files in Python.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SimonGoring
SimonGoring / builddb.py
Last active September 28, 2018 05:15
A script to build the database from the raw files.
""" Import libraries and create the connection. If the connection fails check the JSON file. """
import json
import csv
import re
import psycopg2
# Set to True if we want to delete the whole database as it runs:
dropall = True