Skip to content

Instantly share code, notes, and snippets.

not really here

Nick Robinson nickrobinson251

not really here
View GitHub Profile
nickrobinson251 / generate_pudl_datadeps.jl
Last active Jan 29, 2021
Generate `DataDeps` for easily downloading data packages published to Zenodo by [PUDL](
View generate_pudl_datadeps.jl
using DataDepsGenerators
const RAW_DATASET_TO_DOI = Dict(
# {{DATASET}} =>{{DOI}}
"censusdp1tract" => "10.5281/zenodo.4127049",
"eia860" => "10.5281/zenodo.4127027",
"eia860m" => "10.5281/zenodo.4281337",
"eia861" => "10.5281/zenodo.4127029",
"eia923" => "10.5281/zenodo.4127040",
"epacems" => "10.5281/zenodo.4127055",
nickrobinson251 / name_search.jl
Last active Jan 22, 2021
A Julia startup.jl config file that creates REPL modes which help you find functionality
View name_search.jl
# Functionality for the `names>` repl mode
using REPL: moduleusings
# search through all accessible names for functionality with a name like `str`
names_like(str) = foreach(println, _corrections(str, _accessible_names()))
function _accessible_names(mod=Main) # Based on code in stdlib
_names(m) = names(m; all=true, imported=true) # include unexported `Base` + `mod` names
mod_names = filter!(s -> !Base.isdeprecated(mod, s), _names(mod))
nickrobinson251 /
Last active Nov 5, 2018
A fish config file that let's you use conda virtual environments
if test -n $_CONDA_ROOT
if not contains $_CONDA_ROOT $PATH
# add anaconda (or alternatively miniconda) to path so we can use conda
# make using conda virtual envs possible. Start/stop with
# 'conda activate <env>' and 'conda deactivate'
source $_CONDA_ROOT/etc/fish/conf.d/