Skip to content

Instantly share code, notes, and snippets.

View Advaitgaur004's full-sized avatar
๐Ÿ˜„
Looking Around

Advait Advaitgaur004

๐Ÿ˜„
Looking Around
View GitHub Profile
@Advaitgaur004
Advaitgaur004 / main.c
Created July 25, 2025 18:25
Ctensor softmax testing in src/main.c
#include "cten.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
void* _cten_malloc(size_t size);
@Advaitgaur004
Advaitgaur004 / pre-commit
Created May 28, 2025 01:36
Fun pre-commit Hook
#!/bin/sh
if command -v xdg-open > /dev/null; then
xdg-open https://www.youtube.com/watch?v=dQw4w9WgXcQ
elif command -v open > /dev/null; then # macOS
open https://www.youtube.com/watch?v=dQw4w9WgXcQ
elif command -v start > /dev/null; then # Windows (Git Bash or WSL)
start https://www.youtube.com/watch?v=dQw4w9WgXcQ
fi
@Advaitgaur004
Advaitgaur004 / config.ini
Last active May 12, 2025 08:42
This Python script allows a user to fetch and export recent messages from a selected Telegram chat (group, channel, or private conversation). It's designed to help with summarizing conversations using language models (LLMs) after exporting the chat content.
[Telegram]
api_id =
api_hash =
username =
@Advaitgaur004
Advaitgaur004 / ctensor_ci1.yml
Last active May 25, 2025 09:52
CIs For Ctensor Dev Process
name: Build and Test
on:
push:
branches: [ "main", "ci" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs: