Skip to content

Instantly share code, notes, and snippets.

View mdabir1203's full-sized avatar
🎯
Focusing

Mohammad Abir Abbas aka uknowwhoab1r mdabir1203

🎯
Focusing
View GitHub Profile
@mdabir1203
mdabir1203 / .yarnrc.yml
Last active September 15, 2025 01:28
Optimized yarnrc file for migrating to latest yarn v4
nodeLinker: pnp
compressionLevel: 0
enableHardenedMode: false
enableTelemetry: false
tsEnableAutoTypes: true
@mdabir1203
mdabir1203 / gist:f307903698f327418bf7927388203521
Created August 16, 2025 22:56
"Rust Model Inference Example"
use ndarray::prelude::*;
use ndarray_rand::RandomExt;
use ndarray_rand::rand::distributions::Uniform;
fn sigmoid(x: &Array2<f64>) -> Array2<f64> {
x.mapv(|v| 1.0 / (1.0 + (-v).exp()))
}
// Pretrained weights
struct Model {
class PathTraversalSanitizer
{
@MethodHook(type = HookType.AFTER, targetClassName = "java.io.File", targetMethod = "<init>", targetMethodDescriptor = "(Ljava/lang/String;)")
public static void fileConstructorHook(MethodHandle method, Object thisObject, Object[] arguments, int hookId, Object returnValue)
{
File file = (File) thisObject;
String pathname = (String) arguments[0];
try
@mdabir1203
mdabir1203 / gist:9bed9c14b66661fc5c4d013863b1eac0
Created April 4, 2024 00:12
MermaidDiagram(ArenaMemoryManagement)
graph TD
%% Define styles for different components %%
style ExistingCode fill:#FFCCCC,stroke:#000,stroke-width:2px;
style ArenaMemory fill:#CCFFCC,stroke:#000,stroke-width:2px;
style IntegrationChallenges fill:#FFD699,stroke:#000,stroke-width:2px;
style Integration fill:#CCDDFF,stroke:#000,stroke-width:2px;
%% Existing Codebase %%
subgraph ExistingCodebase
A[Module A] -.-> |Traditional Memory Management| MA