Skip to content

Instantly share code, notes, and snippets.

@jes
jes / index.php
Created June 29, 2025 12:03
Max's Imagebin
<?php
/* ChangeLog:
21-08-2023:
- added password because someone uploaded a topless image
20-11-2020:
- make thumbnails 600px instead of 200px
- use imagemagick to do resizing instead of PHP GD
- change default host from img.jes.xxx to img.incoherency.co.uk
13-12-2018:
- host bootstrap locally instead of using maxcdn
@Matthias247
Matthias247 / async_await_cancellation.md
Created May 28, 2019 06:09
Async/Await - The challenges besides syntax - Cancellation

Async/Await - The challenges besides syntax - Cancellation

This is the second article in a series of articles around Rusts new async/await feature. The first article about interfaces can be found here.

In this part of the series we want to a look at a mechanism which behaves very different in Rust than in all other languages which feature async/await support. This mechanism is Cancellation.

#!/bin/sh
die () {
msg="$1\n"
shift
printf "$msg" "$@" 1>&2
exit 1
}
use=`