flowchart TD
ba[Blocked account <1w]-->visa;
ba-->heal;
enrol[Enrolment certificate]-->dorm;
dorm[Dormitory 2-6w]-->visa;
dorm-->res;
visa[Visa 2-12w]-->res;
addr[Register address 1-4w]-->res;
dorm-->addr;
This file contains hidden or 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
import gleam/otp/task | |
import gleam/http/request | |
import gleam/int | |
import gleam/string | |
import gleam/list | |
import gleam/io | |
import gleam/httpc | |
import gleam/result | |
fn download(url: String) -> Result(String, String) { |
This file contains hidden or 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-repl> sort = import ./mergesort.nix | |
nix-repl> sort [ 3 1 2 8 0 2 3 5 ] | |
[ 0 1 2 2 3 3 5 8 ] |
Thread Count | Time elapsed | Perf MFLOPS | Perf per thread MFLOPS |
---|---|---|---|
1 | 2499 | 1302.7 | 1302.7 |
2 | 2500 | 2587.1 | 1293.5 |
3 | 2500 | 3819.6 | 1273.2 |
4 | 2500 | 5064.9 | 1266.2 |
6 | 2500 | 7450.9 | 1241.8 |
8 | 2502 | 9686.1 | 1210.7 |
10 | 2500 | 12066.5 | 1206.6 |
12 | 2508 | 14523.1 | 1210.2 |
Moved to a dedicated tool json2fs
This file contains hidden or 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
Distance: 5 m | |
Time: 4 s | |
Speed: 1.25 (m/s) | |
Another distance: 0.3 km | |
Total distance: 305 m | |
Speed 1: 20 (m/s) | |
Speed 2: 5 (km/min) | |
Their sum: 103.33333 (m/s) | |
Side size of house 1: 200 m | |
Side size of house 2: 0.5 km |
This file contains hidden or 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
var r = new Random(110); | |
ParseValidSeq(new("{aa}[bb(({a}a[(a)(b)(c)(d)])acdsc){sad{a{a{a}}}}][ff({55}aa)][aaa]")); | |
void ParseValidSeq(StringStepper ss, string prefix = "", Color col = default) | |
{ | |
Prefix(false); | |
while (!ss.EOF) |
This file contains hidden or 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 -f markdown-implicit_figures report.md --pdf-engine=xelatex -o report.pdf |
This file contains hidden or 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 System; | |
using System.Runtime.CompilerServices; | |
public static class Quack | |
{ | |
public static float GetIntegerPart(float f) | |
{ | |
var u = Unsafe.As<float, uint>(ref f); |
NewerOlder