Skip to content

Instantly share code, notes, and snippets.

View nichtich's full-sized avatar
🦊
not a fox

Jakob Voß nichtich

🦊
not a fox
View GitHub Profile
@nichtich
nichtich / pp.js
Created August 11, 2020 07:11
PICA Plain parser in JavaScript
/* PICA Plain parser in JavaScript */
const pp=s=>s.split(/\n/)
.map(l=>l.match(/^([012][0-9][0-9][A-Z@])(\/([0-9]{2,3}))?\s*(\$([A-Za-z0-9]).+)+/)
.filter(m=>m)
.map(m=>[m[0],m[2],...m[3].split(/\$([A-Za-z0-9])/).slice(1).map(s=>s.replace(/\$\$/g,'$'))])
@nichtich
nichtich / notes.md
Last active October 22, 2019 10:17
Visual-Meta data format

moved to

type:
- http://www.w3.org/2004/02/skos/core#ConceptScheme
description:
en: the Great concept Scheme
topConcepts:
- uri: http://example.org/n01
- uri: http://example.org/n02
concepts:
- uri: http://example.org/n01
@nichtich
nichtich / jupyter-hosting.md
Last active September 7, 2022 19:10
Jupyter notebook hosting

Inspired by Ted

the read Ted, not to be confused by TED!

This is a quick draft of interview questions to be asked several people who have been inspired by Ted Nelson. By "inspired" I mean encouraged to do something big visionary influenced by Ted's work.

Comments on the questions are welcome but please don't answer the questions before the questionaire has been finished! I don't promise to actually ask the questions; by now this is just an idea motivated by curiosity, the desire to share my own visions inspired by Ted, and an anticipation of his end of life. Finishing the questionaire during April would be great.

@nichtich
nichtich / csv2quickstatements.pl
Created August 10, 2017 09:00 — forked from lunohodov/ral_classic.csv
RAL Standard Color Table (CSV)
#!/usr/bin/env perl
#
# Import RAL color table to Wikidata via QuickStatements
#
use v5.14;
my %color = (
de => 'Farbe',
en => 'color',
fr => 'couleur',
@nichtich
nichtich / wdquery
Last active November 22, 2023 09:27
Query Wikidata via SPARQL from command line
#!/bin/bash
#
# Run a Wikidata query from command line
#
# Usage examples:
#
# wdquery "DESCRIBE wd:Q42"
# wdquery - xml < query.sparql
# wdquery query.sparql json
#
@nichtich
nichtich / apis.md
Last active January 25, 2017 12:46
KOS APIs