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 | |
# ---------- | |
# Initialise and manage your dotfiles using a ~/.dots repo | |
# restore using `git clone --bare <remote-repo>` | |
dot_dir=".dots" | |
dot_dot_file=".my-dots" | |
_dots="git --git-dir=$HOME/$dot_dir/ --work-tree=$HOME" | |
extra_args="" | |
add_remote=false |
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 python3 | |
""" | |
License: MIT License | |
Copyright (c) 2023 Miel Donkers | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
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
%% Fibonacci number generator in Erlang | |
%% by Hynek Vychodil <[email protected]> 3-JAN-2014 | |
%% Distributed under MIT license at the end of the source code. | |
-module(fib). | |
-export([fib/1]). | |
% NOTE: Native compilation (HiPE) doesn't improve efficiency due heavy integer | |
% bignum computations as observed in R16 |