Skip to content

Instantly share code, notes, and snippets.

View adilkhash's full-sized avatar
🧋
Vibe Coding

Adylzhan Khashtamov adilkhash

🧋
Vibe Coding
View GitHub Profile
@adilkhash
adilkhash / iin_validation.zig
Last active January 3, 2025 08:34
Validation of IIN of Kazakhstan
const std = @import("std");
const process = std.process;
pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer _ = gpa.deinit();
const allocator = gpa.allocator();
const args = try std.process.argsAlloc(allocator);
defer std.process.argsFree(allocator, args);
import random
import datetime as dt
from airflow.decorators import task, dag
default_args = {"owner": "airflow", "start_date": dt.datetime(2024, 2, 1), "retries": 1}
@task.branch()
def choose_branch():
return random.choice(["task_a", "task_b"]) # Randomly chooses a branch