Skip to content

Instantly share code, notes, and snippets.

View vinicius-oa's full-sized avatar

Vinícius Aguiar vinicius-oa

View GitHub Profile
@vinicius-oa
vinicius-oa / compare_two_jsons.py
Created December 10, 2025 13:53
Compare two jsons
import json
import sys
import hashlib
from typing import Any, List, Tuple
def load_json_file(filepath):
"""Load JSON from file"""
with open(filepath, 'r', encoding='utf-8') as f:
return json.load(f)
@vinicius-oa
vinicius-oa / compare_two_numpy_darrays.py
Created December 10, 2025 13:52
Compare two numpy ndarrays
import pickle
import numpy as np
def load_outputs(file1, file2):
"""Load both outputs"""
with open(file1, "rb") as f:
original = pickle.load(f)
with open(file2, "rb") as f: