Skip to content

Instantly share code, notes, and snippets.

Avatar

Philipp G. Haselwarter haselwarter

View GitHub Profile
View crazy_shit.R
CFI_taxa <- function (df,acceptable_taxa) {
subset(df,
(df[,c("Class", "Sub-Class", "Oder", "Sub-Order", "Super-Family", "Family")] %in% acceptable_taxa,
select = Field : Number))
}
CFI_taxa_try <- CFI_taxa (data_mother, acceptable_taxa = c("Carabidae", "Elateridae","Sympyhta"))
@haselwarter
haselwarter / randompathalongpath.inx
Created May 20, 2018
Inkscape extension that randomly places an object along a path
View randompathalongpath.inx
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Pattern randomly along Path</_name>
<id>math.univ-lille1.barraud.pathdeformrandomly</id>
<dependency type="executable" location="extensions">pathmodifier.py</dependency>
<dependency type="executable" location="extensions">randompathalongpath.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="tab" type="notebook">
<page name="Options" _gui-text="Options">
<param name="copymode" type="enum" _gui-text="Copies of the pattern:">
View update-andromeda.sh
#!/bin/sh
set -e
function usage () {
echo "Usage: update-andromeda.sh [option]"
echo " Update Andromeda to the latest available version (default)"
echo " --dev Update the development version of Andromeda"
}