Skip to content

Instantly share code, notes, and snippets.

@MatthewFlamm
MatthewFlamm / band_lsoda_results
Last active January 6, 2025 21:45
Testing banded Jacobian LSODA in scipy
# running with n=1, ml=1, mu=2
Solver Full/Band With/out Jac # Func. Eval # Jac. Eval
--------- ----------- -------------- -------------- -------------
solve_ivp full no jac 1101 63
solve_ivp full jac 722 48
solve_ivp band no jac 1038 63
solve_ivp band jac 722 48
odeint full no jac 983 52
odeint full jac 726 56
odeint band no jac 931 52
# test_1.py
def test_w_number():
"""
Correctly Passes
Examples
--------
>>> 1. # doctest: +NUMBER
0.
"""
@MatthewFlamm
MatthewFlamm / Alarm system.md
Last active April 16, 2025 20:18
Esp32 home alarm system with home assistant and esphome

Alarm system using esp32 with esphome and home assistant

@MatthewFlamm
MatthewFlamm / restart_wlan.sh
Created August 16, 2019 11:05
Restart pi wlan
#!bin/bash
ping -c 1 192.168.0.1 > /dev/null 2>&1
if [ $? -ne 0 ]
then
date
ifconfig wlan0
sudo ip link set wlan0 down
sudo ip link set wlan0 up
ifconfig wlan0
fi