Skip to content

Instantly share code, notes, and snippets.

developit / *
Last active Feb 6, 2021
265b lib for building pure functional state machine components.
View *


A tiny (265 byte) utility to create state machine components using two pure functions.

🔥 JSFiddle Demo


The API is a single function that accepts 2 pure functions as arguments:

swlaschin /
Created Jul 5, 2017
Functional Track talks from NDC Oslo 2017

Functional Track talks from NDC Oslo 2017

Also, here is the list of all videos from NDC Oslo 2017:

Wednesday 2017-06-14

View basic-example-react-channels.js
// a basic example demonstrating the power of channels and generators
import React from 'react'
import { render } from 'react-dom'
import { chan, go, take, put, putAsync } from 'js-csp'
import { curry } from 'ramda'
import Counter from './Counter'
// helper
const createRender = curry((node, app) => render(app, node))
// create one channel for now
View types.markdown

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

ryyppy /
Last active Nov 4, 2019
A Life on a Commandline - How to never touch a mouse again. Lightning Talk Proposal for ReactiveConf 2016 (

Proposal for this year's Reactive lightning talks @ReactiveConf - If you want to see my talk, star this gist please :-) [Reactive Blogpost][reactive-conference-blogpost]

A life on a Commandline

As a JavaScript developer, could you imagine using something else than Atom, Sublime or other IDE-like text-editors? During their daily work, people wrangle a lot with different applications, editors, windows, browsers and loose a lot of time because of their tools getting in their way.

schickling /
Last active Nov 22, 2020
Script to import and export docker-machine configurations to sync between hosts/collaborators

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators

Export (on host A)

$ docker-machine ls
NAME       ACTIVE   DRIVER         STATE     URL                            SWARM   DOCKER    ERRORS
dev        -        digitalocean   Running   tcp://                 v1.10.1
kritikinfo / AndroidAdMobView.js
Last active Oct 18, 2019
gist showing Admob Banner Ad use within react native. It's not perfect, but it works. Not included: build.gradle which needs dependency on play-services-ads.
View AndroidAdMobView.js
var { PropTypes, requireNativeComponent } = require('react-native');
var React = require('react-native')
var {
} = React;
var iface = {
name: 'AdmobView',
jramb / wsclj-core.clj
Last active Dec 11, 2015
Web Services in Clojure, simple example. Both server and client.
View wsclj-core.clj
(ns wsclj.core
(:import [javax.jws WebService])
(:import [ Endpoint]))
;; Based on a blog-comment by Jonathan Seltzer
(defprotocol Calculator
(hello [this yourname])
(add [this a b])
ckirkendall / clojure-match.clj
Created Jun 15, 2012 — forked from bkyrlach/Expression.fs
Language Compare F#, Ocaml, Scala, Clojure, Ruby and Haskell - Simple AST example
View clojure-match.clj
(use '[clojure.core.match :only [match]])
(defn evaluate [env [sym x y]]
(match [sym]
['Number] x
['Add] (+ (evaluate env x) (evaluate env y))
['Multiply] (* (evaluate env x) (evaluate env y))
['Variable] (env x)))
(def environment {"a" 3, "b" 4, "c" 5})