Keybase proof
I hereby claim:
- I am rpearce on github.
- I am rpearce (https://keybase.io/rpearce) on keybase.
- I have a public key whose fingerprint is 6F5D 52E9 DEF3 D210 66AE 97F4 E8DD 20E4 8EFB 46B5
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -o errexit | |
#set -o errtrace | |
set -o nounset | |
#set -eou pipefail | |
# ============================================================================== | |
VERSION="0.1.0" |
#!/bin/bash | |
set -o errexit | |
set -o errtrace | |
set -o nounset | |
set -eou pipefail | |
# ============================================================================== | |
VERSION="0.1.0" |
#!/bin/bash | |
set -o errexit | |
set -o errtrace | |
set -o nounset | |
set -eou pipefail | |
# ============================================================================== | |
function clearscreen { |
{ | |
description = "IHP flake"; | |
nixConfig.bash-prompt = "[nix]\\e\[38;5;172mλ \\e\[m"; | |
inputs = { | |
nixpkgs.url = "nixpkgs/nixos-21.05"; | |
flake-utils = { | |
url = "github:numtide/flake-utils"; |
:def hoogle \x -> return $ ":!hoogle --count=15 \"" ++ x ++ "\"" | |
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\"" | |
:set -Wall | |
:set -fno-warn-type-defaults -ferror-spans -freverse-errors -fprint-expanded-synonyms | |
:set prompt "\ESC[0;32m%s\n\ESC[m[ghci]\ESC[38;5;172mλ \ESC[m" | |
:set prompt-cont " \ESC[38;5;172m> \ESC[m" |
// helper functions are from https://github.com/rpearce/hex | |
const lightenDarken = (direction, color) => { | |
const rgb = hexToRgba(color).slice(0, 3) | |
// algo from https://stackoverflow.com/a/21038522/680394 | |
const rgbAdjusted = direction >= 0 | |
? rgb.map(x => (1 - direction) * x + direction * 255) | |
: rgb.map(x => (1 + direction) * x) | |
#!/usr/bin/env bash | |
set -o errexit | |
set -o errtrace | |
set -o nounset | |
set -eou pipefail | |
function clearscreen { | |
printf '\033c' | |
} |
module Tmp | |
def self.build(src:, name:, ext:, binmode: false) | |
file = Tempfile.new([name, ext], Rails.root.join('tmp')) | |
file.binmode if binmode | |
open(src) { |f| file.write(f.read) } | |
file.rewind | |
file.close | |
file | |
end | |
end |
#!/bin/sh | |
############################################################################### | |
# XCode | |
############################################################################### | |
echo "Setting up XCode..." | |
xcodebuild -license | |
xcode-select --install | |
sudo xcode-select -switch /Library/Developer/CommandLineTools |
I hereby claim:
To claim this, I am signing this object: