Skip to content

Instantly share code, notes, and snippets.

View jpgoldberg's full-sized avatar

Jeffrey Goldberg jpgoldberg

View GitHub Profile
@jpgoldberg
jpgoldberg / mypy-badge.json
Last active December 8, 2023 18:08
mypy dynamic badge
View mypy-badge.json
{"label":"Mypy","message":"checked","schemaVersion":1,"color":"blue"}
View mastodon-proof.html
<!DOCTYPE html>
<!-- This page was copied (and modified) from Royce Williams'
https://royce.keybase.pub/proofs/mastodon.html -->
<html lang="en-us">
<head>
<title>Jeffrey Goldberg - Mastodon proofs</title>
<meta charset="utf-8" />
<meta name="description" content="Mastodon proof for GitHub">
<meta name="language" content="en" />
@jpgoldberg
jpgoldberg / soups2021-multiengine.sty
Created May 19, 2021 21:08
XeLaTeX friendly SOUPS 2021 sty
View soups2021-multiengine.sty
% (JPG) Modified Usenex-SOUPS style to use fontspec if running with XeLaTeX or LuaLaTeX
% (JPG) Comments annoted with "(JPG)" are by Jeffrey P Goldberg,
% (JPG) jeffrey@goldmark.org (or jeff@1password.com)
% (JPG):
% The goal is to make this style sheet work with using a pdftex engine,
% (pdflatex) as well as XeTeX or LuaTeX (xelatex, lualatex)
% with similar output
%
@jpgoldberg
jpgoldberg / numbers2words.R
Created March 8, 2017 22:39 — forked from psychemedia/numbers2words.R
R function to convert numbers to words
View numbers2words.R
#https://github.com/ateucher/useful_code/blob/master/R/numbers2words.r
numbers2words <- function(x){
## Function by John Fox found here:
## http://tolstoy.newcastle.edu.au/R/help/05/04/2715.html
## Tweaks by AJH to add commas and "and"
helper <- function(x){
digits <- rev(strsplit(as.character(x), "")[[1]])
nDigits <- length(digits)
if (nDigits == 1) as.vector(ones[digits])
@jpgoldberg
jpgoldberg / keybase.md
Created March 6, 2014 21:46
Keybase.io proof
View keybase.md

Keybase proof

I hereby claim:

  • I am jpgoldberg on github.
  • I am jpgoldberg (https://keybase.io/jpgoldberg) on keybase.
  • I have a public key whose fingerprint is 0D18 24B2 2FC6 6EA6 90CD 2809 1154 2BC0 DE87 9F23

To claim this, I am signing this object: