This file contains 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 money(workdays, hnetto, zus, costs) { | |
workdays = workdays !== undefined ? workdays : 0; | |
hnetto = hnetto !== undefined ? hnetto : 0; | |
zus = zus !== undefined ? zus : 0; | |
costs = costs !== undefined ? costs : 0; | |
var mnetto = workdays * 8 * hnetto; | |
var costs_netto = costs/1.23; | |
var costs_vat = costs - costs_netto; | |
var vat = mnetto*0.23; | |
var brutto = mnetto+vat; |
This file contains 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/sh | |
LOSETUP=$(which losetup) | |
SUDO=$(which sudo) | |
MOUNT=$(which mount) | |
CRYPTSETUP=$(which cryptsetup) | |
FILE=$(realpath $1) | |
FILENAME=$(basename $1) | |
if [ ! -f "$FILE" ]; then |
This file contains 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/sh | |
WHICH=/bin/which | |
REALPATH=$($WHICH realpath) | |
SED=$($WHICH sed) | |
GPG=$($WHICH gpg) | |
MV=$($WHICH mv) | |
LN=$($WHICH ln) | |
LOSETUP=$($WHICH losetup) | |
SUDO=$($WHICH sudo) | |
MOUNT=$($WHICH mount) |
This file contains 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
<?xml version='1.0' ?><kml xmlns="http://www.opengis.net/kml/2.2"> | |
<kml> | |
<Document> | |
<name>Strava Segments</name> | |
<NetworkLink> | |
<name>Strava Segments</name> | |
<Link> | |
<href>https://nomi.cz/strava/segmentsView.kml</href> | |
<viewFormat>south=[bboxSouth]&west=[bboxWest]&north=[bboxNorth]&east=[bboxEast]&token=XXXXXXXXXXXXXXXXXXXXXXXXXXa&type=ride</viewFormat> | |
<viewRefreshMode>onStop</viewRefreshMode> |
This file contains 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 g { | |
$newArgs=$args[1..($args.Length-1)] | |
if ($args[0] -eq "ci") { | |
git commit $newArgs | |
} elseif ($args[0] -eq "hof") { | |
git shortlog -n -s --no-merges | |
} elseif ($args[0] -eq "cic") { | |
git commit --amend | |
} elseif ($args[0] -eq "snake") { | |
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative |
This file contains 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: | |
java -jar js.jar INDIR OUTFILE | |
ex: | |
java -jar js.jar exampleDirectory filesMerged.js | |
*/ | |
var fileList = []; | |
var inputDir = arguments[0] || "example"; | |
var outFile = arguments[1] || "example.js"; |
This file contains 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 (window, document, undefined) { | |
var defined = {}; | |
var loading = []; | |
var waiting = []; | |
var head = document.getElementsByTagName("head")[0]; | |
var loadRequired = function () { | |
var i = 0, | |
imax = loading.length; |