Skip to content

Instantly share code, notes, and snippets.

@twopoint718
twopoint718 / Reader.lhs
Last active April 21, 2024 11:15
An article about the Reader type (functor, applicative, and monad instances)
Okay, so I'll try and walk through the reader monad as best as I can. And
because I think it helps to de-mystify things a bit, I'll also go through
all of the "super classes" of monad: functor and applicative (because every
monad should also be an applicative and every applicative functor should be
a functor). This file is literate Haskell so you should just be able to
load it in the REPL or run it. It's also kinda/sorta markdown, so it should
render that way as well (but the code is formatted wrong).
> module Reader where
@ryanzyy
ryanzyy / .vimrc
Last active March 27, 2020 10:06
vimrc
" ------ Plug ----- {{{
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive' " IDE - Git
Plug 'ludovicchabant/vim-gutentags' " IDE - Ctags
Plug 'dracula/vim', {'as': 'dracula'} " IDE - Color
Plug 'junegunn/fzf' " IDE - Directory
Plug 'junegunn/fzf.vim' " IDE - Directory
Plug 'scrooloose/nerdtree' " IDE - Directory
Plug 'mileszs/ack.vim' " IDE - Find
@fnando
fnando / dev.conf
Created July 23, 2011 09:00
Nginx configuration for SSH tunnel
upstream tunnel {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name dev.codeplane.com br.dev.codeplane.com;
location / {
proxy_set_header X-Real-IP $remote_addr;