Skip to content

Instantly share code, notes, and snippets.

View WhiteBlackGoose's full-sized avatar
🦆
Quack

WhiteBlackGoose

🦆
Quack
View GitHub Profile
@WhiteBlackGoose
WhiteBlackGoose / studies-dependency-graph.md
Last active August 8, 2023 17:17
Graph of documents/bureaucracy dependencies for studies in the EU
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--&gt;addr;
@WhiteBlackGoose
WhiteBlackGoose / demo
Last active June 15, 2023 09:05
Merge sort implemented in the nix programming language
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 ]
@WhiteBlackGoose
WhiteBlackGoose / 2700X.md
Last active February 6, 2023 15:43
Comparison of CPUs with https://github.com/WhiteBlackGoose/MultithreadingTest commit: b7b55c0b4770d5d0aed565ec153c06a1edc5719a
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
@WhiteBlackGoose
WhiteBlackGoose / editors.md
Last active February 15, 2023 16:42
List of free & amazing editors

List of editors

Only FOSS editors.

Editor License Windows macOS GNU/Linux FreeBSD Notes
Atom MIT 🟢 🟢 🟢 🟢 Deprecated
Brackets MIT 🟢 🟢 🟢 🟢 Deprecated
Emacs GPLv3 🟢 🟢 🟢 🟢
Geany GPLv2 🟢 🟢 🟢 🟢
@WhiteBlackGoose
WhiteBlackGoose / link.md
Last active February 8, 2022 12:46
Generates records by given json
@WhiteBlackGoose
WhiteBlackGoose / Output.txt
Last active December 20, 2021 16:03
Advanced measurement units
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
@WhiteBlackGoose
WhiteBlackGoose / _valid_seq_parser.cs
Last active December 9, 2021 12:48
Parsers and formats a valid sequence of brackets
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)
@WhiteBlackGoose
WhiteBlackGoose / md2pdf.bat
Last active September 23, 2021 12:55
Markdown to PDF
pandoc -f markdown-implicit_figures report.md --pdf-engine=xelatex -o report.pdf
@WhiteBlackGoose
WhiteBlackGoose / GetIntegerPart.cs
Last active September 3, 2021 09:09
Truncates fractional part of a float
using System;
using System.Runtime.CompilerServices;
public static class Quack
{
public static float GetIntegerPart(float f)
{
var u = Unsafe.As<float, uint>(ref f);
@WhiteBlackGoose
WhiteBlackGoose / Instruction.md
Last active August 24, 2021 03:58
Deployment script to mirror your github readme into your personal web page!
  1. Create a github readme. To do it, create YourUsername repo.
  2. In your repo, create ./github/workflows/website_mirror.yml and paste the content of the file below into it.
  3. Go to its Settings -> Pages, select gh-pages as Source.
  4. Create README.md in the root of the repo. Fill it with your info!
  5. Done! Your personal web page is at yourusername.github.io/YourUsername.