Skip to content

Instantly share code, notes, and snippets.

View HaQadosch's full-sized avatar
📓
Storybook

HaQadosch HaQadosch

📓
Storybook
View GitHub Profile
@HaQadosch
HaQadosch / tsws
Last active September 6, 2015 21:20 — forked from dfletcher/tsws
Totally simple web server using Bash and netcat (nc)
#!/bin/bash
# --------------------------------
# Totally Simple Web Server (TSWS)
# --------------------------------
#
# (c) 2015 Dave Fletcher
# All Rights Reserved
#
# This is free and unencumbered software released into the public domain.
@HaQadosch
HaQadosch / README.md
Created March 24, 2016 17:21 — forked from rauchg/README.md
require-from-twitter
@HaQadosch
HaQadosch / combinators.js
Created February 21, 2018 10:19 — forked from Avaq/combinators.js
Common combinators in JavaScript
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));