Skip to content

Instantly share code, notes, and snippets.

@arivero
arivero / ew_qcd_stability_gadget_light_v1.html
Last active June 18, 2026 21:12
nuclear stability and fine structure constant
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>EW–QCD Stability-Line Gadget</title>
<style>
:root {
--bg: #f3f6fa;
--panel: #ffffff;
@arivero
arivero / 01.jpg
Last active May 26, 2026 22:37
deVries_opus47
01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arivero
arivero / mult.tex
Created August 19, 2025 10:46
multiplicaciones para niños
\documentclass[12pt,a4paper]{article}
\usepackage[margin=0.8in]{geometry}
\usepackage{amsmath}
\usepackage{array}
\usepackage{tikz}
\usetikzlibrary{calc}
\pagestyle{empty}
% ---- unified N×M renderer (tight alignment) ----
@arivero
arivero / grokking.py
Last active March 2, 2024 20:59
Grokking example, in train dataset
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
def create_synthetic_data(input_dim=1024, num_samples=10000):
num_classes = input_dim
y = np.random.randint(0, num_classes, size=(num_samples,))
y= tf.keras.utils.to_categorical(y, num_classes)
X = y
return X, y
@arivero
arivero / disable.sh
Created June 25, 2023 18:36 — forked from mtunjic/disable.sh
Disable bunch of #$!@ in Catalina
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@arivero
arivero / bledump.txt
Created January 24, 2022 18:52 — forked from andypiper/bledump.txt
experimenting with BLE and LEGO Boost
LEGO Move Hub
8E552B7A-1B9E-4F4D-A0AE-7D585F784B73
advertisementData: ["kCBAdvDataIsConnectable": 1, "kCBAdvDataTxPowerLevel": 0, "kCBAdvDataLocalName": LEGO Move Hub]
00001623-1212-EFDE-1623-785FEABCD123 []
00001624-1212-EFDE-1623-785FEABCD123 ["read", "writeWithoutResponse", "write", "notify"] <0f00043c 01140002 00000002 000000> ["Client Characteristic Configuration <0100>"]
Notification Log:
1502201043.29111 - 00001624-1212-EFDE-1623-785FEABCD123 isNotifying: true
60440
9350
8000
5690
5550
4930
4790
4460
3490
2850
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@arivero
arivero / ajusteCovid.py
Last active April 28, 2020 15:10
descarga y ajusta los datos de fallecimientos oficiales, para estimar los datos finales
#!/usr/bin/env python
# coding: utf-8
# In[1]:
from scipy.optimize import leastsq,curve_fit
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
def logcorrected(x,s0,k0,dk,mu,i0,v):