Skip to content

Instantly share code, notes, and snippets.

View witt3rd's full-sized avatar
⌨️
crafting

Donald Thompson witt3rd

⌨️
crafting
View GitHub Profile

Homebrew

Minimal packages

brew install git bash

Remove everything

brew remove --force --ignore-dependencies $(brew list)

Docker

Swarm init

PUBLICNAME=127.0.0.1 docker stack deploy --with-registry-auth -c docker-compose.yml foo
@witt3rd
witt3rd / prodigy.md
Last active July 16, 2018 13:59
Explosion AI's Prodigy

Explosion AI's Prodigy

Install

# Linux
pip install prodigy-1.5.1-cp35.cp36-cp35m.cp36m-linux_x86_64.whl
conda install spacy

neo4j

GraphQL

Copy the latest plugin jar into $NEO4J_HOME/plugins and edit $NEO4J_HOME/config/neo4j.conf and add this line dbms.unmanaged_extension_classes=org.neo4j.graphql=/graphql

Homotopy Type Theory

Intersection of:

  • dependent type theory
  • higher category theory
  • homotopy theory
type DependentTypeTheory {

PureScript

Install

Ubuntu

sudo npm install -g purescript --unsafe-perm=true

Category Theory

Data

  • Objects
  • Arrows
    • Source object
    • Target object
  • Rules
    • Identity
  • Arrow where source = target
(async () => {
// -- Generic collection helpers
// get the (arbitrary) first element of an (unordered) set
function carSet<T>(set: Set<T>): T | undefined {
return set.entries().next().value[0]
}
// a Hash Set is a mapping from keys to sets
function consHSet<K, V>(hset: Map<K, Set<V>>, k: K, v: V): void {