I hereby claim:
- I am hlapp on github.
- I am hlapp (https://keybase.io/hlapp) on keybase.
- I have a public key whose fingerprint is 259A 0B06 CA2A 2BDC 9068 AFE8 E78C 88C1 5115 9122
To claim this, I am signing this object:
#!/bin/bash | |
# Reboots if there is no network device for the global route. | |
# | |
# Hilmar Lapp <hlapp@drycafe.net> | |
# | |
# To the extent possible under law, I have waived all copyright and related | |
# or neighboring rights to this work under the CC0 1.0 Universal Public Domai | |
# Dedication. See https://creativecommons.org/publicdomain/zero/1.0 |
#!/bin/bash | |
set -e | |
src=${1:-.} | |
dest=$2 | |
if [ -z "$dest" ] ; then | |
dest="$1" | |
fi |
#!/bin/bash | |
# Tests whether the network connection to the local router is up. If not, | |
# resets the network interface that was supposed to be connected. After | |
# that tests whether multicast DNS resolution of the localdomain hostname | |
# is still working, and if not, resets the avahi daemon as well. | |
# | |
# Hilmar Lapp <hlapp@drycafe.net> | |
# | |
# To the extent possible under law, I have waived all copyright and related |
I hereby claim:
To claim this, I am signing this object:
library(whisker) | |
library(knitr) | |
responses <- read.csv(file="applicants.csv", stringsAsFactors=FALSE) | |
# names(responses)[ncol(responses)] <- "attendance" | |
responses_lst <- apply(responses, 1, function(x) as.list(x)) | |
template <- " | |
-------------------- |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
public class benchmarking_java { | |
public static void main(String[] args) { | |
// regular expression | |
//Pattern pattern = Pattern.compile("^.*(.*?)<i>\\s*([^<]*)\\s*<\\/i>(.*).*$"); | |
Pattern pattern = Pattern.compile("^(.*?)<i>\\s*([^<]*)\\s*<\\/i>(.*)$"); | |
long startTime = 0; |
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<nex:nexml | |
version="0.9" | |
xsi:schemaLocation="http://www.nexml.org/2009 http://www.nexml.org/2009/nexml.xsd" | |
xmlns:phen="http://www.bioontologies.org/obd/schema/pheno" | |
xmlns:gml="http://www.opengis.net/gml" | |
xmlns:dwc="http://rs.tdwg.org/dwc/terms/" | |
xmlns:dcterms="http://purl.org/dc/terms/" | |
xmlns="http://www.nexml.org/2009" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
## | |
# before for-loop optimization | |
## | |
getSimulationSplits<-function(phy) { | |
phy$node.label<-NULL | |
branchingTimes<-sort(branching.times(phy), decreasing=TRUE) | |
branchingTimesNames<-names(branchingTimes) | |
ancestorVector<-c() | |
descendant1Vector<-c() | |
descendant2Vector<-c() |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Bio::NEXUS; | |
use Bio::TreeIO; | |
use Bio::AlignIO; | |
use Bio::Phylo::IO; | |
use Bio::Phylo::Factory; | |
use Bio::Phylo::Forest::Tree; |