This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: version_matches <version> <clause> | |
# | |
# Params: | |
# <version> Dot-separated version specifier, e.g. 2.4.32 | |
# <clause> Match-clause according to grammer (below), e.g. >=1.0.0&<2.0.0 | |
# | |
# Grammar: | |
# | |
# <version> ::= <uint> | <uint> "." <version> | |
# <version_pred> ::= <version> | <op> <version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Unofficial Bash Strict Mode (http://redsymbol.net/articles/unofficial-bash-strict-mode/) | |
set -euo pipefail | |
IFS=$'\n\t' | |
PROG="$(basename "$0")" | |
VERSION="0.1.0" | |
UPSTREAM_URL='https://gist.github.com/a-ludi/326a58b5a6b85c9c523833f614090438' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// with errors due to minkowski with non-convex objects | |
translate([8, 0, 0]) | |
difference() { | |
cube([15, 15, 1], center=true); | |
minkowski() { | |
for (i = [-1 : 1]) | |
for (j = [-1 : 1]) | |
translate(5*[i, j, 0]) | |
cylinder(10, r=1, center=true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function expectStruture(object, structure, breadcrumbs) { | |
var subStructure; | |
breadcrumbs = breadcrumbs || []; | |
structure = { | |
title: true, | |
description: true, | |
gallery: [{}], | |
eventTypeMood: true, | |
eventTypeLocation: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Copyright © 2015 Arne Ludwig <[email protected]> | |
* | |
* This program is free software: you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License as published by the Free | |
* Software Foundation, either version 3 of the License, or (at your option) | |
* any later version. | |
* | |
* This program is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# gpgedit lets you edit a gpg-encrypted file without much fuzz -- similar to | |
# sudoedit. | |
# | |
# For this to achieve, gpgedit uses gpg to decrypt your file and save the | |
# plain text in a temporary file under /dev/shm (tmpfs) which will open in | |
# an editor. After the changes have been saved and the editor closed your | |
# plain text will be encrypted and written to the original file. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script makes incremental or full backups of a given folder using rsync. | |
# Copyright (C) 2013 Arne Ludwig <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify it under the terms of the | |
# GNU General Public License as published by the Free Software Foundation, either version 3 of | |
# the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | |
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/gnuplot | |
set terminal pngcairo enhanced color \ | |
font "cmr10,10" fontscale 1.3 \ | |
size 890, 682 | |
# Set the gaussian rgb-palette | |
G(x) = 0.855 * exp(-(x - 0.5)**2/0.25) | |
B(x) = 1.056 * exp(-x**2/0.49) | |
R(x) = B(1.0 - x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\makeatletter | |
\if@todonotes@disabled% | |
\else | |
\newif\if@todonotes@localhide\@todonotes@localhidefalse% | |
\define@key{todonotes}{hide}[]{\@todonotes@localhidetrue}% | |
\define@key{todonotes}{show}[]{\@todonotes@localhidefalse}% | |
\renewcommand{\@todo}[2][]{% | |
\if@todonotes@prependcaptionglobal% | |
\@todonotes@prependcaptiontrue% |