Skip to content

Instantly share code, notes, and snippets.

View ggaammdev's full-sized avatar

Gorker Alp Malazgirt ggaammdev

View GitHub Profile
@ggaammdev
ggaammdev / dask_wifi_heartbeat_join.py
Created March 4, 2026 07:29
billion-row Wi-Fi telemetry dataset with distributed join optimizations like salting, bucketing, and predicate pushdown in dask
from abc import ABC, abstractmethod
import dask.dataframe as dd
import dask.array as da
from dask.distributed import Client, LocalCluster
import pandas as pd
import numpy as np
import logging
import time
# ==========================================
@ggaammdev
ggaammdev / pyspark_wifi_heartbeat_join.py
Created March 3, 2026 18:39
billion-row Wi-Fi telemetry dataset by combining JVM-level garbage collection tuning with distributed join optimizations like salting, bucketing, and predicate pushdown
from abc import ABC, abstractmethod
from pyspark.sql import SparkSession
import pyspark.sql.functions as F
import logging
import time
class SparkJobBase(ABC):
def __init__(self, job_name):
self.job_name = job_name
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
@ggaammdev
ggaammdev / cpp_pointers.cpp
Created February 15, 2026 12:45
C++ smart pointers safe and unsafe usage scenario
#include <iostream>
#include <memory>
#include <vector>
#include <string>
// ==========================================
// CONFIGURATION
// ==========================================
// Increase this number until your program crashes on the "Unsafe" tests.
// On many systems, 50,000 to 100,000 is enough to overflow the default stack.
@ggaammdev
ggaammdev / weight_freeze_reinitialization.py
Created November 21, 2025 11:37
Weight reinitilization and weight freeze for continual learning in neural networks
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.init as init
import math
# ==========================================
# 1. The Scheduler Class
# ==========================================
class SaliencePulseScheduler:
@ggaammdev
ggaammdev / weight_reinitialization.py
Created November 6, 2025 12:41
neural network weight reinitialization based on weight * gradient_w value
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.init as init
import math
# ==========================================
# 1. Setup: Model, Optimizer, Data, Metrics
# ==========================================
# A simple model for demonstration