Skip to content

Instantly share code, notes, and snippets.

View thepeak99's full-sized avatar

Martin E. Zulliger thepeak99

View GitHub Profile
@thepeak99
thepeak99 / mergesort.txt
Last active September 3, 2015 11:48
Mergesort implemented in Mikrotik Script
:global splitmerge do={
:local left;
:local right;
:local out;
:local middle;
:local leftIdx;
:local rightIdx;
:if ($end - $start < 2) do={
:return {[:pick $list $start]};
@thepeak99
thepeak99 / hash.md
Last active October 21, 2015 14:27
Hash Templating Language

#Hash templating language

##Rules:

  • Non-alphanumeric characters denote end of variable/statement
  • Hashes (#) need escaping should they be needed in text, they are escaped by simply writing two hashes (##)
  • Conditions are Python expressions, hence valid Python code
  • Loops are in loops in Python, hence valid Python code too

Grammar

#var: replace var

Keybase proof

I hereby claim:

  • I am thepeak99 on github.
  • I am exequiel (https://keybase.io/exequiel) on keybase.
  • I have a public key ASB0fZAFcwchXc2-Q_xACwYZPRKhfKBPM2MkVoIkp4uIOQo

To claim this, I am signing this object:

@thepeak99
thepeak99 / Cargo.toml
Created June 10, 2022 21:17
Long polling demo with Rust and Actix
[package]
name = "long-poll-demo"
version = "0.1.0"
edition = "2021"
[dependencies]
actix-web = "4"
tokio = { version = "1.19", features = ["sync"] }
serde = { version = "1", features = ["derive"] }