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
""" | |
hysthresh(im, T1, T2) | |
Hysteresis thresholding | |
A simple port of Peter Kovesi's MATLAB method to Julia. | |
See http://www.peterkovesi.com/matlabfns/Spatial/hysthresh.m | |
Usage: bw = hysthresh(im, T1, T2) |
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
""" | |
bwselect(BW, c , r) | |
Select objects in a binary image. | |
Similar to the MATLAB function of the same name. | |
""" | |
function bwselect(BW, c, r) | |
# constants | |
north = CartesianIndex(-1, 0) |
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
# including this ensures that new gnome-terminal tabs keep the parent `pwd` ! | |
# https://ttboj.wordpress.com/2014/03/20/preserving-your-working-directory-in-gnome-terminal/ | |
if [ -e /etc/profile.d/vte.sh ]; then | |
. /etc/profile.d/vte.sh | |
fi |
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
using PyCall | |
@pyimport pickle | |
function mypickle(filename, obj) | |
out = open(filename,"w") | |
pickle.dump(obj, out) | |
close(out) | |
end | |
function myunpickle(filename) |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
nix-env -iA nixos.oraclejre8 | |
Unfortunately, we cannot download file jdk-8u131-linux-x64.tar.gz automatically. | |
Please go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html to download it yourself, and add it to the Nix store | |
using either | |
nix-store --add-fixed sha256 jdk-8u131-linux-x64.tar.gz | |
or | |
nix-prefetch-url --type sha256 file:///path/to/jdk-8u131-linux-x64.tar.gz |
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
Connection='wireless' | |
Interface=wlp58s0 | |
Security='wpa-configsection' | |
Description="eduroam network" | |
IP='dhcp' | |
TimeoutWPA=30 | |
WPAConfigSection=( | |
'ssid="eduroam"' | |
'key_mgmt=WPA-EAP' | |
'eap=PEAP' |
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
# Arch installation on Dell XPS 13 (9360), October 2020 | |
# Please also consult official documentation: | |
# https://wiki.archlinux.org/index.php/Installation_Guide | |
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360) | |
# Boot from the usb. | |
# F12 to enter boot menu | |
# Set UK keymap | |
loadkeys uk |
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
reb@HELIUM:~$ sudo apt-get install sbcl | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages were automatically installed and are no longer required: | |
libfreetype6 os-prober | |
Use 'apt-get autoremove' to remove them. | |
The following extra packages will be installed: | |
binfmt-support | |
Suggested packages: |
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
pandoc briefing.md --latex-engine=xelatex -V papersize:"a4paper" -V geometry:margin=1in -V fontsize:12pt -o briefing.pdf |