Skip to content

Instantly share code, notes, and snippets.

View drtobbe's full-sized avatar

Torbjörn Sjögren drtobbe

View GitHub Profile
@drtobbe
drtobbe / blockstack.txt
Created January 6, 2018 10:41
blockstack
Verifying my Blockstack ID is secured with the address 1GkdfPijtbuJJdoyye76ojHyVKHqea68Dw https://explorer.blockstack.org/address/1GkdfPijtbuJJdoyye76ojHyVKHqea68Dw

Keybase proof

I hereby claim:

  • I am drtobbe on github.
  • I am drtobbe (https://keybase.io/drtobbe) on keybase.
  • I have a public key whose fingerprint is 2B7C 8C7F 9EA2 3B03 B5A4 1807 EDEC A0EE B2C9 91C5

To claim this, I am signing this object:

#!/usr/bin/env python
# encoding: utf-8
'''
linkedin-query.py
Created by Thomas Cabrol on 2012-12-03.
Customised by Rik Van Bruggen
Customised by Torbjorn Sjogren
Copyright (c) 2012 dataiku. All rights reserved.
@drtobbe
drtobbe / loadWordNet.gremlin
Last active December 17, 2015 15:19
loadWordNet.gremlin
import java.io.*;
java.util.HashMap
/**
Introduction to the WordNet datamodel:
The core concept in WordNet is the synset. A synset groups words with a synonymous meaning, such as {car, auto, automobile, machine, motorcar}. Another sense of the word "car" is recorded in the synset {car, railcar, railway car, railroad car}. Although both synsets contain the word "car", they are different entities in WordNet because they have a different meaning. More precisely: a synset contains one or more word senses and each word sense belongs to exactly one synset. In turn, each word sense has exactly one word that represents it lexically, and one word can be related to one or more word senses.
There are four disjoint kinds of synset, containing either nouns, verbs, adjectives or adverbs. There is one more specific kind of adjective called an adjective satellite. Furthermore, WordNet defines seventeen relations (called pointers by the word net folks), of which ten between synsets (hyponymy, entailment, similarity, membe
// to download RDF dumps of WordNet 3.0:
// git clone git://eculture.cs.vu.nl/home/git/public/vocs/wordnet.git
import com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph;
import com.tinkerpop.blueprints.oupls.sail.GraphSail;
import org.openrdf.model.Statement;
import org.openrdf.rio.RDFFormat;
import org.openrdf.rio.RDFHandler;
import org.openrdf.rio.RDFHandlerException;
import org.openrdf.rio.RDFParser;
@drtobbe
drtobbe / build.sh
Created March 26, 2012 15:15 — forked from bfleischer/build.sh
Workaround for NTFS-3G and Lion's CoreFoundation bug
#!/bin/sh -x
# These variables are always passed to build.sh
DIST_DIR="$1"
TMP_DIR="$2"
ROOT_DIR="$3"
PROJNAME="fuse_wait"
DESTDIR="usr/local/bin"