Skip to content

Instantly share code, notes, and snippets.

View attilatorda's full-sized avatar

Attila Torda attilatorda

View GitHub Profile
@attilatorda
attilatorda / CChecker.py
Created November 13, 2025 13:15
C Checker
import os
import re
from pathlib import Path
# --- Configuration ---
# Set the directory to check ('.' means the current directory)
TARGET_DIR = Path('.')
# Regex for common C code mistakes and features
# 1. Assignment in logical condition (e.g., if (x = 5))
@attilatorda
attilatorda / Add_Explorer_Context_Menus.bat
Last active September 23, 2025 13:19
Windows Explorer Right-Click Tools
@echo off
SETLOCAL EnableDelayedExpansion
:: Check if running as admin (required for registry edits)
net session >nul 2>&1
if %errorLevel% neq 0 (
echo This script requires administrator privileges.
echo Please right-click and "Run as administrator".
pause
exit /b