Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Copyright 2014 Paul Ferrett <paul@paulferrett.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@gbirke
gbirke / nthree2png.sh
Created July 7, 2014 15:54
Convert n3 file to PNG
#!/bin/bash
# Use the rdf2dot Python command (from the rdflib) to create a PNG from a graph
function usage {
echo "Usage: $0 input.n3 output.pn3"
exit
}
@gbirke
gbirke / composer-link
Created July 28, 2014 14:46
Ansible module for linking to vendor directories
@gbirke
gbirke / .conkyrc
Last active August 29, 2015 14:04
My Conky config
background yes
use_xft yes
xftfont 123:size=12
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

Keybase proof

I hereby claim:

  • I am gbirke on github.
  • I am chiborg (https://keybase.io/chiborg) on keybase.
  • I have a public key whose fingerprint is 2BB9 36CE 7B6F 86B5 8A9B F5AF 5A73 908E 7FD4 B4D6

To claim this, I am signing this object:

@gbirke
gbirke / Python-Experimente.ipynb
Last active August 29, 2015 14:08
Python Experimente iPython notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gbirke
gbirke / named_group_capturing.js
Created December 12, 2014 01:28
Regex named group capturing in JavaScript
// These three functions are for creating a map between named groups in RegExp objects
// cleaning the named groups from regular expressions and to assign the captured items according to the map.
function getMap(rx) {
var braceMatch = /(?:^|[^\\])\((?!\?)(\:<(\w+)>)?/g,
braceMap = {},
braceCount = 0,
source = (rx instanceof RegExp) ? rx.source : rx,
match;
while ((match = braceMatch.exec(rx)) !== null) {
@gbirke
gbirke / Default.sublime-commands
Created January 21, 2015 13:07
FUSEKI text tables to Markdown
[
{
"caption": "Reg Replace: Fuseki Table to Markdown",
"command": "reg_replace",
"args": {"replacements": [
"fuseki_table_begin_end",
"fuseki_quote_resource",
"fuseki_remove_dash_lines",
"fuseki_replace_equal_lines"
]}
@gbirke
gbirke / Hash-Experiments.ipynb
Last active August 29, 2015 14:15
Hash-Experiments
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
"""
Merge the translatable properties of VIVO and Vitro and compare to the
German property file. Output all missing dictionary keys.
"""
read_vitro = open("vitro_all.properties", "r")
read_vivo = open("vivo_all.properties", "r")
read_all = open("all_de_DE.properties", "r")
writefile = open("new.properties", "w")