Skip to content

Instantly share code, notes, and snippets.

View JuneKelly's full-sized avatar

June Kelly JuneKelly

View GitHub Profile
hello
;;; init.el -*- lexical-binding: t; -*-
;; This file controls what Doom modules are enabled and what order they load
;; in. Remember to run 'doom sync' after modifying it!
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
;; documentation. There you'll find information about all of Doom's
;; modules and what flags they support.
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
@JuneKelly
JuneKelly / wrapper.zsh
Created December 26, 2019 21:22
Zsh nvm wrapper
export NVM_DIR="$HOME/.nvm"
function nvm() {
if [[ -v __nvm_recursion_protect__ ]]; then
echo 'error: recursive call to nvm'
return 1
fi
local __nvm_recursion_protect__='true'
if [[ "$(type nvm)" =~ 'zshrc' ]]; then
source "$NVM_DIR/nvm.sh"
source "$NVM_DIR/bash_completion"
@JuneKelly
JuneKelly / youtube_id.ex
Last active July 11, 2018 15:43
Youtube IDs in Elixir
def make_youtube_id() do
:crypto.strong_rand_bytes(8)
|> Base.url_encode64(padding: false)
end
# Produces 11-character strings like "NxdgQMuCZ5Q"
@JuneKelly
JuneKelly / test-fail.txt
Created February 21, 2018 10:04
Local test failures relating to lock-manager
...
LockManager - checking the lock
1) should check if lock exists but not set or expire
2) should return true if the key does not exists
3) should return false if the key does exists
LockManager - releasing the lock
4) should put a all data into memory
LockManager - getting the lock
@JuneKelly
JuneKelly / test.js
Last active February 21, 2018 09:56
Lock test failure
// Generated by CoffeeScript 1.12.4
(function() {
var SandboxedModule, chai, modulePath, path, should, sinon;
sinon = require('sinon');
chai = require('chai');
should = chai.should();
@JuneKelly
JuneKelly / BaselineTest.txt
Created December 12, 2017 13:45
Full text of the Baseline Test from Blade Runner 2049
A blood black nothingness began to spin.
Began to spin.
Let's move on to system.
System.
Feel that in your body.
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFmcB3UBEAC4pOEV2cyUOC/4Yg0cU6HnMqE0sGT8szesv8tYRGCYTWobNXpZ
7SBcgivmsQt9rBYH39oZRZI83OQiKAlzXUztgJYLApZuIpz1BK5ElSzm9FLp07YH
hhH8H3xXzGgBejSY85QLxZRfjYO+ROQHSKB9r0zsBQBZecPJMpW7gKkX0hNmcFsE
fpdpUkCrtaq0+QFHLSu/eGyJ0QOc1dKv0xrS3fxMChLtTePp6c4UAVl84UVwmZD3
wYVFbV8ltAv235aEMxlxFTUulNKPY16S7CVRAoDpiCgHn7K3Yg33wGeDBe3TX+tp
qjrgwjvWnBGGxh8fnRoaEYaTYz8jXB3uvqTTXkS+HYnr8XwfL80vkUWN+xw28j70
2lo8ICl/f0X4y/3zy7tDTvESgEsMCH6xcSIxeuivWEfZHTOFDzMPYd+vWUJIXnjN
fZxe062qIiRUDjROrLAppgCvm4P3l/HzGgeJeA+DTCeeQUgU5PO8fxDiQ6srIu7X
@JuneKelly
JuneKelly / Birdy naming scheme
Created October 13, 2016 19:55
A bird-themed naming scheme, one for most letters of the Alphabet
Avocet
Brant
Condor
Dipper
Egret
Finch
Grouse
Heron
Ibis
Jackdaw