Skip to content

Instantly share code, notes, and snippets.

View JuneKelly's full-sized avatar

June Kelly JuneKelly

View GitHub Profile
@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.
@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 / 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 / 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 / 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"
;;; 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
hello