This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Use github as a authorized_keys file. Single-user system only, probably janky and a bad idea in many ways. | |
url="https://danhughes.dev/keys" | |
cachefile="/tmp/keycache" | |
keys=$(curl -sfL $url) | |
code=$? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert'); | |
const naiveFib = n => { | |
if (n === 1 || n === 2) return 1; | |
return naiveFib(n - 1) + naiveFib(n - 2); | |
}; | |
console.time("naive"); | |
assert(naiveFib(45) === 1134903170); |