Skip to content

Instantly share code, notes, and snippets.

View kurtlippert's full-sized avatar

Kurt Lippert kurtlippert

View GitHub Profile
@kurtlippert
kurtlippert / starting-w-haskell.md
Created November 3, 2022 01:02
Starting With Haskell (Easy?)

Nix

// TODO

Fedora

deps: ghc-zlib ghc-zlib-devel cc gcc-c++ gmp gmp-devel make ncurses ncurses-compat-libs xz perl utils: neovim python3-pip python3 pynvim

Haskell

install ghcup

@kurtlippert
kurtlippert / index.ts
Last active December 15, 2021 14:33
Start to functional standard lib for typescript
import { Nothing, Just } from "https://jspm.dev/purify-ts/Maybe"
import { List } from "https://jspm.dev/purify-ts/List"
import { Tuple } from "https://jspm.dev/purify-ts/Tuple"
import { pipe } from "https://jspm.dev/fp-ts/pipeable"
// === String Helpers ===
// to replace those found w/ `lodash` that don't really support `Maybe`
// inspired by https://github.com/NoRedInk/haskell-libraries/blob/trunk/nri-prelude/src/Text.hs
export const String = {
@kurtlippert
kurtlippert / local-postgres.md
Last active January 31, 2019 18:54
Local Postgres

Install per your systems instructions

in pg_hba.conf file, set localhost authentication to peer

w/o this, I can't friggin log into postgres user ¯\_(ツ)_/¯

@kurtlippert
kurtlippert / attachDebounce.md
Last active January 17, 2019 16:28
Attach debounce event to target using rxjs
const attachDebounce =
  (target: EventTarget & HTMLInputElement,
   eventAsString: string,
   handleEmittedValue: (input: string) => any) => {
    if (!target.hasAttribute('data-debounce-input-attached')) {
      target.setAttribute('data-debounce-input-attached', '')
      fromEvent(target, eventAsString)
        .pipe(
 map(e => (e.target as any).innerText),
@kurtlippert
kurtlippert / git_prereq_before_mr.md
Last active November 30, 2018 18:31
Continue work when prereqs are in MR (or PR)

After you've pushed and submitted the MR

git checkout master

Play changes on master
git rebase <branch>
git checkout -b <new_feature>

When ready to MR, changes from past MR will show up until merged into master

profit!

@kurtlippert
kurtlippert / pipenv_ubuntu.md
Last active October 8, 2018 17:36
install pipenv properly on ubuntu

When installing pipenv via pip... (as of 10/08/2018)

pip install --user --upgrade pip # to install latest 18.1
pip install --user git+https://github.com/pypa/pipenv.git
@kurtlippert
kurtlippert / pipenv.md
Last active September 5, 2018 20:30
My Pipenv Setup

In .bashrc

export PIPENV_VENV_IN_PROJECT=1
export PIPENV_IGNORE_VIRTUALENVS=1

In vscode project
pipenv --python 3.6 (or whatever version)
pipenv shell (vscode and pipenv should know where the .venv folder is)
pipenv install ...

@kurtlippert
kurtlippert / browser_hijack_check.md
Created August 8, 2018 13:40
level(3) or other browser hijacking tool
@kurtlippert
kurtlippert / gnome-exchange-online-account.md
Created July 21, 2018 23:09
Gnome Online Exchange Account (Company Domain)

email: your email
pass: your password

expand 'custom'

user: your email
server: "outlook.office365.com"