View route-to-ip.bash
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/bash | |
if [[ $# -ne 1 ]]; then | |
echo 'Usage: '"$0"' IP_ADDRESS' >&2 | |
exit 1 | |
fi | |
ip="$1" | |
set -x |
View tree
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/bash | |
## | |
# Build software with basher. | |
read -rd '' HELP <<'EOF' | |
tree - Build software from custom build scripts, into a directory tree of your choosing. | |
USAGE: tree COMMAND [ AUTHOR/REPO ] [ OPTIONS ] | |
COMMANDS: | |
new : Initialize a new tree project. Respects --dir argument if given. |
View replaceslash.sh
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
#! /usr/bin/env bash | |
# | |
# replaceslash.sh | |
# Copyright (C) 2017 hugo <hugo@supersudomachine> | |
# | |
# Distributed under terms of the MIT license. | |
# | |
[ -f NClass.build ] || ( | |
echo failed to find the build file, execute this script in the root of the NClass project && exit 1 |
View FastFibonacci.java
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
package nl.hva.dmci.ict.se.datastructures.fibonacci; | |
import java.math.BigInteger; | |
import java.util.function.Consumer; | |
import edu.princeton.cs.algs4.Stopwatch; | |
public class FastFibonacci { | |
static double timeStart; |
View dikkie.json
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
// cmd: cat dikkie.json | POST -sS "http://127.0.0.1:5984/dikkie/_bulk_docs" -c "application/json" | |
{ | |
"docs": [ | |
{ | |
"Voornaam": "Sander", | |
"id": 7064, | |
"Achternaam": "Lauridsen", | |
"Geboortedatum": "1-nov-76", | |
"Straat": "Taylorweg 70", | |
"Postcode": "5466AE", |
View cloudSettings
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
{"lastUpload":"2017-06-03T21:04:31.484Z","extensionVersion":"v2.8.1"} |
View cloudSettings
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
{"lastUpload":"2017-06-03T20:54:54.028Z","extensionVersion":"v2.8.1"} |
View image_sorter.sh
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
#!/usr/bin/env bash | |
# | |
# image_sorter.sh | |
# Copyright (C) 2017 Hugo | |
# | |
# Distributed under terms of the MIT license. | |
# | |
# This script will sort the image and video files from an android phone by date by placing them in directories | |
# according to the dates that can be extracted from the filename. The filenames of the images must be structured | |
# as follows: yyyymmdd_HHMMSS.jpg or yyyymmdd_HHMMSS.mp4 (other extentions can be added easily) |
View rockpaperscissors.pl
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
#!/usr/bin/env perl | |
# This is a short script to play rock paper scissors | |
use strict; | |
use warnings; | |
my @rps = qw(rock paper scissors); | |
my %weakness = (rock => "paper", paper => "scissors", scissors => "rock"); | |
my $score = 0; | |
my $npcscore = 0; |
NewerOlder