Skip to content

Instantly share code, notes, and snippets.

View danieldk's full-sized avatar

Daniël de Kok danieldk

View GitHub Profile
--- pl-6.6.6.orig/src/swipl-ld.c 2014-12-17 10:57:20.000000000 +0100
+++ pl-6.6.6/src/swipl-ld.c 2014-12-17 10:57:38.000000000 +0100
@@ -964,9 +964,6 @@
if ( !ld ) /* not specified */
{ ld = (shared ? SO_LD : PROG_LD);
-
- if ( cppfiles.size > 0 && streq(ld, cc) )
- ld = cxx;
}

The Division of Computational Linguistics at the University of Tübingen, Germany is involved in the construction of research infrastructures for language resources and technology at the local, national, and European levels. See http://www.sfs.uni-tuebingen.de/en/ascl/projects.html for more information.

For the CLARIN and CLARIN-D projects, we are searching for a computer scientist or computational linguist with expertise and experience in one or more of the following areas: (scalable) web services, web applications, linked data, user interface design and implementation, including usability and user experience.

Programming experience in Java (or another object-oriented language) are required. Good command of German and good communication skills in English are expected.

An M.Sc. in Computer Science or a Ph.D. in Linguistics, Computational Linguistics, Computer Science, or related field is required.

The starting date for this full-time position is June 1st, 2015. The initial period of appointment is until Ma

@danieldk
danieldk / levenshtein_perf_test.go
Last active January 23, 2016 08:11
golang-levenshtein benchmark
package levenshtein
import (
"math/rand"
"testing"
)
func randomString(r *rand.Rand, choice []rune, length int) []rune {
str := make([]rune, 0, length)
use std::io;
use std::fs;
use std::env;
use std::fmt;
use std::process;
use std::collections::{HashMap, HashSet};
use std::io::BufRead;
pub fn or_exit<T, E: fmt::Display>(r: Result<T, E>) -> T {
r.unwrap_or_else(|e: E| -> T {

Keybase proof

I hereby claim:

  • I am danieldk on github.
  • I am danieldk (https://keybase.io/danieldk) on keybase.
  • I have a public key ASAWniFYEAa31daeO076vi8ZrP2x8bzpycLxFr3GTSun7Qo

To claim this, I am signing this object:

@danieldk
danieldk / plex-server-firewalld.diff
Created October 29, 2017 12:29
firewalld configuration for plex-media-server
diff --git a/PKGBUILD b/PKGBUILD
index 756a8f4..1d8ff4c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,20 +22,23 @@ install='plex-media-server.install'
source=('plexmediaserver.conf.d'
'plexmediaserver.service'
'plex.sysusers'
- 'terms.txt')
+ 'terms.txt'
diff --git a/hdf5/repos/community-x86_64/PKGBUILD b/hdf5/repos/community-x86_64/PKGBUILD
index db9267df556..d128844253c 100644
--- a/hdf5/repos/community-x86_64/PKGBUILD
+++ b/hdf5/repos/community-x86_64/PKGBUILD
@@ -16,9 +16,17 @@ depends=('zlib' 'bash')
makedepends=('time' 'gcc-fortran')
replaces=('hdf5-cpp-fortran')
provides=('hdf5-cpp-fortran')
-source=("https://support.hdfgroup.org/ftp/HDF5/releases/${pkgname}-${pkgver:0:4}/${pkgname}-${pkgver/_/-}/src/${pkgname}-${pkgver/_/-}.tar.bz2")
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${pkgname}-${pkgver:0:4}/${pkgname}-${pkgver/_/-}/src/${pkgname}-${pkgver/_/-}.tar.bz2"
diff --git a/PKGBUILD b/PKGBUILD
index 3e09bcd..631d0e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,32 @@
# Maintainer: Brendan Abolivier <[email protected]>
pkgname=xqilla
-pkgver=2.3.2
+pkgver=2.3.3
pkgrel=1
@danieldk
danieldk / incorrect-optimization.patch
Last active January 4, 2018 12:47
DB XML 6.1.4 optimization patch
Patch provided by Lauren Foutz. See:
https://community.oracle.com/thread/4093422
--- dbxml-6.1.4-orig/dbxml/src/dbxml/query/ParentOfChildJoinQP.cpp
+++ dbxml-6.1.4/dbxml/src/dbxml/query/ParentOfChildJoinQP.cpp
@@ -139,28 +139,16 @@ bool ParentOfChildIterator::doJoin(Dynam
// Invarient 4: When ancestorStack_ is empty we can output the
// buffered results_, since any more results will come after them in
// document order.
macro_rules! ok_or {
($expr:expr, $stmt:stmt) => (match $expr {
Some(val) => val,
None => {$stmt}
})
}