Skip to content

Instantly share code, notes, and snippets.

View kba's full-sized avatar

Konstantin Baierer kba

View GitHub Profile
@kba
kba / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kba
kba / data.xml
Created October 26, 2015 13:13
d3.xml sample
<?xml version="1.0" encoding="UTF-8"?>
<data>
<docs nr_docs="0">42</docs>
<docs nr_docs="1">24</docs>
<docs nr_docs="2">12</docs>
<docs nr_docs="3">1</docs>
<docs nr_docs="5">1</docs>
<docs nr_docs="6">15</docs>
<docs nr_docs="7">1</docs>
<docs nr_docs="8">1</docs>
{
"algorithm": "io.github.infolis.algorithm.FrequencyBasedBootstrapping",
"inputFiles": [
"e6d33630-8d06-11e5-8a0d-770a3ae0f19d"
],
"patterns": [
"9ab57ad0-87a0-11e5-8579-295800119092"
]
}
ok, also zum einen steht im Schema
"@id": "infolis:term",
...
"schema:domainIncludes": {
"@id": "infolis:TextualReference"
},
das sollte "@id":"infolis:reference" sein wenn ich das richtig sehe
ergo:
{
digraph g{
rankdir=LR;
"infolis-web" -> "express-jsonld" ;
"infolis-web" -> "mongoose-jsonld" ;
"infolis-web" -> "tson" ;
"infolis-web" -> "vim2html" ;
"infolis-web" -> "infolis-logging" ;
"express-jsonld" -> "infolis-logging" ;
@kba
kba / bench.pl
Last active February 13, 2016 13:06
use strict;
use warnings;
use Benchmark qw(:all);
my $alphabet = 'STKPWHRAO*#EUFRPBLGTS';
my $re = qr/^S?T?K?P?W?H?R?A?O?\*?#?E?U?F?R?P?B?L?G?T?S?\.?$/;
sub match_re {
my $yesno = ($_[0] =~ $re) ;
#print $_[0] . " " . ($yesno ? 'yes' : 'no') . "\n";

Keybase proof

I hereby claim:

  • I am kba on github.
  • I am kba (https://keybase.io/kba) on keybase.
  • I have a public key whose fingerprint is 3C4B 5E85 F6F3 530E DD0C 364E 99C5 7367 D566 3B6A

To claim this, I am signing this object:

@kba
kba / tampermonkey-keys.md
Last active October 5, 2024 01:25
Tampermonkey keyboard cheat sheet

Found by grepping through the JS of Tampermonkey BETA 4.1.5180

Builtin shortcuts

Key combo Context Action Notes
Alt-Right Dashboard Next Tab
Alt-Left Dashboard Previous Tab
Shift-Up Dashboard Check script and move up? Not working or misunderstood
Shift-Down Dashboard Check script and move down? Not working or misunderstood