Skip to content

Instantly share code, notes, and snippets.

@higgins
higgins / pr_audit.js
Last active November 14, 2023 19:22
Average time to close a PR in a repo
// Installation:
// 1. Add this file to the root of your github repo (limited to 10K PRs)
// 2. Install Github CLI (if you haven't already) -- https://cli.github.com/
// 3. Login -- gh auth login
// 4. Run it -- node thisScript.js
const { execSync } = require('child_process');
function getPullRequests() {
const command = 'gh pr list --limit=10000 --base=master --state=all --json=isDraft,mergedAt,createdAt,author';
@higgins
higgins / duo-lingo-pre-push
Last active June 27, 2022 00:41
Extend your DuoLingo daily streak or your `git push` gets rejected
#!/usr/local/bin/python3.9
# NOTE:
# Install the unofficial DuoLingo SDK -- https://github.com/KartikTalwar/Duolingo
#
# 1. pip install duolingo-api
# 2. Update username and password below
# 3. Copy this file to .git/hooks/pre-push
#
# You may have to update reference to python3.9 above
@higgins
higgins / es.txt
Last active September 22, 2020 07:58
es.txt
What|Qué|(a,b) => a.toLowerCase().replace(/é/, 'e') === b.toLowerCase().replace(/é/, 'e')
I ate|(Yo comí|comí)|(a,b) => a.toLowerCase().replace(/í/, 'i') === b.toLowerCase().replace(/í/, 'i')
@higgins
higgins / keybase.md
Created December 8, 2017 07:22
keybase pairing

Keybase proof

I hereby claim:

  • I am higgins on github.
  • I am higgins (https://keybase.io/higgins) on keybase.
  • I have a public key ASC7Vl77j1Yy5B3axAY1Gc5BaiJwNmJYaf44pc7c-fb7Lwo

To claim this, I am signing this object: