Skip to content

Instantly share code, notes, and snippets.

View benjstephenson's full-sized avatar

Benji Stephenson benjstephenson

View GitHub Profile
const foo: number | undefined = 2
const inc: (x: number) => number = x => x + 1
const lift: <A, B>(f: (a: A) => B) => (a: A | undefined) => B | undefined =
f => a => a === undefined
? undefined
: f(a)
const map: <A, B>(a: A | undefined) => (f: (a: A) => B) => B | undefined =
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
# Load dependencies.
pmodload 'helper'
CURRENT_BG='NONE'
SEGMENT_SEPARATOR="\ue0b0"
# Begin a segment
# Takes two arguments, background and foreground. Both can be omitted,
# rendering default background/foreground.
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
# bste <bjames.stephenson@gmail.com>
#
#
# General

Keybase proof

I hereby claim:

  • I am benjstephenson on github.
  • I am benjstephenson (https://keybase.io/benjstephenson) on keybase.
  • I have a public key whose fingerprint is 00B7 2F49 DE2D 3F6E 56F4 84CC D32F 5718 DA73 66D9

To claim this, I am signing this object: