Skip to content

Instantly share code, notes, and snippets.

View hytopoulos's full-sized avatar
🐟

theo hytopoulos

🐟
View GitHub Profile
import os
from pathlib import Path
import modal
import re
import subprocess
from typing import Optional
from concurrent.futures import ThreadPoolExecutor, as_completed
from functools import partial
from typing import Dict
@hytopoulos
hytopoulos / c_loc.sh
Created December 13, 2022 06:48
Count lines of code for a specific language using git blame
#!/bin/bash
c_files=$(find . -name "*.c")
loc=0
# Loop through each C file
for file in $c_files; do
loc=$((loc + $(git blame $file | grep $1 | wc -l)))
done
#what we need:
#.include "macros.inc"
#.section .text # 0x80005940 - 0x803B7240
import sys, os, errno, re
import xlrd
# -============================================- #
#include "global.h"
#include "entity.h"
#include "functions.h"
#include "textbox.h"
typedef struct {
s8 unk0;
u8 unk1;
u8 unk2;
u8 unk3;