I hereby claim:
- I am Fleshgrinder on github.
- I am fleshgrinder (https://keybase.io/fleshgrinder) on keybase.
- I have a public key whose fingerprint is 07DC 4CF5 EF0B 27D9 A311 9EA5 A5A2 6F7B 85A4 A347
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| set -eu | |
| # http://docopt.org/ | |
| usage() { | |
| cat << EOT | |
| Clean local branches except for master. | |
| Usage: git-clean-branches [options...] |
| function dword { | |
| Param([string] $path, [string] $name, [string] $value) | |
| if (!(Test-Path $path)) { | |
| New-Item -Path (Split-Path $path) -Name (Split-Path $path -leaf) | Out-Null | |
| } | |
| New-ItemProperty -Path $path -Name $name -Value $value -PropertyType DWORD -Force | Out-Null | |
| } | |
| # disables the creation of so called 8dot3names | |
| fsutil 8dot3name set 1 | Out-Null |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| if command -v jenv &>/dev/null; then | |
| JAVA_HOME=$(jenv javahome) | |
| export JAVA_HOME | |
| fi | |
| if [[ -x gradlew ]]; then | |
| exec ./gradlew "$@" |
| #!/bin/sh | |
| cat << EOF | |
| Create PR at: https://github.com/$(git remote get-url origin | grep -Eo '[^/:]+/[^/.]+')/compare/$(git rev-parse --abbrev-ref HEAD)?expand=1 | |
| EOF |
| #!/bin/sh | |
| set -eu | |
| # | |
| # Commands for generating a new GPG key for GitHub commit signing. | |
| # | |
| # https://help.github.com/articles/generating-a-new-gpg-key/ | |
| # | |
| gpg --full-gen-key |
| function f(Integer? x) { | |
| return x?.plus(42); | |
| } | |
| print(f(null)); |
| <?php | |
| class NaturalNumber { | |
| private $n; | |
| public function __construct(int &$n) { | |
| if ($n < 1) { | |
| throw new InvalidArgumentException('n must be greater than zero, got ' . $n); | |
| } | |
| <?php | |
| final class Main { | |
| public static function f(int $x): int { | |
| return $x + 42; | |
| } | |
| } | |
| Main::f(null); |
| public class Main { | |
| public static void main(String[] args) { | |
| f(null); | |
| } | |
| private static int f(Integer x) { | |
| return x + 42; | |
| } | |
| } |