Skip to content

Instantly share code, notes, and snippets.

View haselwarter's full-sized avatar

Philipp G. Haselwarter haselwarter

View GitHub Profile
#!/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"
}
@haselwarter
haselwarter / randompathalongpath.inx
Created May 20, 2018 13:20
Inkscape extension that randomly places an object along a path
<?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:">
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"))
#!/usr/bin/bash
# Goal: move workspace $1 to the currently focused output, move the workspace on the current output
# to the output where $1 was.
# The workspace we want to end up on
dest_ws=$1
# The output where the destination ws resides
output_of_dest_ws=$(i3-msg -t get_workspaces | jq .[] | jq -r 'select(.name == "'$dest_ws'").output')
# The currently focused output
Set Warnings "-notation-overridden".
From mathcomp Require Import all_ssreflect seq.
Set Warnings "notation-overridden".
From extructures Require Import ord fset.
Open Scope fset_scope.
Set Bullet Behavior "Strict Subproofs".
Set Default Goal Selector "!".
Set Primitive Projections.
commit 4167767b45324c70a0f30abbb95f7ac616558b7a
Author: Philipp G. Haselwarter <philipp@haselwarter.org>
Date: Fri Feb 11 23:38:00 2022 +0100
Bind ctrl-m (^M) to act like Return, i.e. accept the current entry
diff --git a/wayland.c b/wayland.c
index 4bf93be..3dda551 100644
--- a/wayland.c
+++ b/wayland.c