Skip to content

Instantly share code, notes, and snippets.

View wires's full-sized avatar
🕳️

Jelle Herold wires

🕳️
View GitHub Profile
@wires
wires / runptnet.js
Created December 31, 2019 15:11
petrinet runner
// list of transitions
// places start at index 1, not zero
// doesn't support multiple tokens in same place / 1-safe
net = [
[1],[2,3],
[2],[4],
[3],[5],
[4,5],[6]
]
@wires
wires / README.md
Last active August 15, 2019 11:40
package.json

Cannot use citation-js with the Parcel bundler it seems because citation-js defines it's own version of require

To demonstrate the problem, run npm start

You then see this error in the console

Uncaught TypeError: Cannot read property 'system_id' of undefined
    at engines.js:15
 at CSL.Blob. (engines.js:34)
@wires
wires / app.jsx
Last active May 28, 2019 17:41
atomic-layout example
import React from 'react'
import ReactDOM from 'react-dom'
import Page from './index.jsx'
let el = document.getElementById('main')
ReactDOM.render(<Page/>, el)
@wires
wires / tiny-cla.md
Created April 11, 2019 12:17
Tiny CLA

indieopensource.com Tiny Contributor License Agreement

Version 2abfa4b4bb35cf165d38d055366d6ea14e80c1bb

I, {{{contributor name}}}, give {{{project steward name}}} permission to license my contributions on any terms they like. I am giving them this license in order to make it possible for them to accept my contributions into the project.

As far as the law allows, my contributions come as is, without any warranty or condition, and I will not be liable to anyone for any damages related to this software or this license, under any kind of legal claim.

@wires
wires / Dockerfile
Last active March 11, 2019 15:49
Monograph latex & HTML tools
FROM debian:9-slim
RUN apt -y update
RUN apt -y install --no-install-recommends texlive-base pandoc latexmk
RUN apt -y install --no-install-recommends texlive-latex-extra texlive-fonts-extra texlive-fonts-recommended lmodern
RUN apt -y install --no-install-recommends python-pip python-setuptools && pip install bdist-venv pandocfilters
RUN apt -y install --no-install-recommends imagemagick ghostscript

probably irrelevant, but notice that various different versions of joi are in use:

├─┬ hemera-joi@5.2.1
│ └─┬ joi@12.0.0
|
└─┬ nats-hemera@5.6.0
  ├─┬ heavy@4.0.4
  | |
@wires
wires / howto.txt
Created May 30, 2017 02:57
cloning all github repos of some organisation
curl -u username https://api.github.com/orgs/ORG/repos > repos.json
cat repos.json | jq ".[].ssh_url" | xargs -L 1 git clone
@wires
wires / Makefile
Created April 14, 2017 14:58
Purescript build tool
# bower and pulp and purescript 0.11, break all my stuff
.PHONY = all run clean build
DEPS=$(shell find bower_components -type f -iname "*.purs")
all: build
install:
bower install
@wires
wires / README.md
Created April 10, 2017 14:30
npm.im/node-weekji
@wires
wires / P.js
Last active January 21, 2017 21:20
twittable-promise
e=exports
e.ser=x=>x.reduce((p,q)=>p?p.then(z=>q(z)):q(),0)
e.par=x=>new Promise((k,r)=>{N=x.length;x.map(p=>p().then(_=>--N?_:k(),r))})