Skip to content

Instantly share code, notes, and snippets.

View Rekyt's full-sized avatar

Matthias Grenié Rekyt

View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active July 25, 2024 19:14
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@MarinaGolivets
MarinaGolivets / match_taxon_names_to_gbif.R
Last active October 1, 2023 15:59
An R function for standardising plant taxon names against the GBIF taxonomic backbone
# as input, provide a vector of verbatim taxon names (preferably with authorship)
# and a vector of existing local identifiers for those names
# load R packages
library(dplyr)
library(tidyr)
match_to_gbif.fn <- function(taxon_name, taxon_id, include_genus = FALSE) {
# perform initial matching in parallel
library(tidyverse)
library(analogsea)
library(furrr)
# R on local machine → DigitalOcean Linux image → Docker on that → R
# Install analogsea, log into DigitalOcean, generate an API key with write
# permissions, and add this line to ~/.Rprofile:
#
# Sys.setenv(DO_PAT = "KEY_GOES_HERE")
@mcoster
mcoster / bib2hugoac.py
Last active September 10, 2018 01:25
bib2hugoac - a python script that takes a .bib file and generates a directory full of .md files for use with the Hugo Academic theme
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This script takes a BibTeX .bib file and outputs a series of .md files for use
in the Academic theme for Hugo, a general-purpose, static-site generating web
framework. Each file incorporates the data for a single publication.
Written for and tested using python 3.6.1
@crsh
crsh / plot_dependencies.R
Last active January 15, 2021 08:35
Plots the network of package dependencies
#' Plot network of package dependencies
#'
#' @param pkg package description, can be path or package name. See \code{\link[devtools]{as.package}} for
#' more information.
#'
#' @details The resulting plot visualizes the network of package dependencies. If you are trying to cut down
#' on package dependencies look for big red dots that represent a lot of upstream but few downstream
#' dependencies.
#' @import ggplot2
#' @export
msg <- function(..., prob = 0.25) {
if (runif(1) > prob) {
return(invisible())
}
messages <- c(...)
message(sample(messages, 1))
}
encourage <- function() {
# somewhat hackish solution to:
# https://twitter.com/EamonCaddigan/status/646759751242620928
# based mostly on copy/pasting from ggplot2 geom_violin source:
# https://github.com/hadley/ggplot2/blob/master/R/geom-violin.r
library(ggplot2)
library(dplyr)
"%||%" <- function(a, b) {
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt