Skip to content

Instantly share code, notes, and snippets.

Paweł Rychlik pawelrychlik

Block or report user

Report or block pawelrychlik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View loading WordNet into Neo4j via GraphSail
// to download RDF dumps of WordNet 3.0:
// git clone git://eculture.cs.vu.nl/home/git/wordnet
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;
@pawelrychlik
pawelrychlik / html2plz.js
Last active Aug 29, 2015
geopostcodes.com webscraper
View html2plz.js
var fs = require('fs');
var cheerio = require('cheerio');
fs.readFile('./page.html', 'utf8', dataLoaded);
var config = {
"geopostcodes.com": {
"city" : "München",
"itemsSelector" : "table.list2>tbody>tr",
"locationSelector" : "td",
@pawelrychlik
pawelrychlik / resolver.js
Created Jul 31, 2014
Directory tree walker & js file resolver
View resolver.js
var fs = require("fs");
var path = require("path");
var util = require('util');
function Resolver(pathToDirectory) {
this.mappings = dirTree("initial-value", pathToDirectory).contents;
//console.log("[URL Resolver] Discovered mappings: %s", util.inspect(this.mappings, false, null));
}
function dirTree(name, filepath) {
You can’t perform that action at this time.