Skip to content

Instantly share code, notes, and snippets.

Avatar

Simon SimonGoring

View GitHub Profile
@SimonGoring
SimonGoring / githubkeywords.csv
Created Feb 16, 2022
Throughput Database Github Keywords
View githubkeywords.csv
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 Feb 3, 2022
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.
View 01_native_land_circlepackeR.R
# 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)
View q_steens.ipynb
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 Jun 9, 2021
Condenser config File
View README.md
@SimonGoring
SimonGoring / output.bib
Created May 26, 2020
Losing Journal title?
View output.bib
@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 Jan 29, 2019
Getting ready for the PAGES ECR Webinar
View 01_SGoringPAGES_ECR.md

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 Oct 2, 2018
Loading yaml, csv, json and json-ld files in Python.
View DataTypesinPython.ipynb
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 Sep 28, 2018
A script to build the database from the raw files.
View builddb.py
""" 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
@SimonGoring
SimonGoring / listgit.sh
Last active Nov 18, 2021
A short bash script to check a directory and report whether Git projects have been committed, or are being tracked.
View listgit.sh
#!/bin/bash
curdir=$PWD
RED='\033[1;31m'
YELLOW='\033[1;33m'
GREEN='\033[1;32m'
NC='\033[0m' # No Color
cnt=0
good=0
untr=0
uncom=0
@SimonGoring
SimonGoring / onlinesales.ipynb
Created Sep 20, 2018
Modified ipython notebook with new data and table definitions
View onlinesales.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.