Main guide: https://etoast.net/posts/agilent_repair/
Repairing the power supply is not very feasible.
- Power Supply: RPSG-160-12 [1x]
- RPSG-160-12 Datasheet
""" | |
Related to https://github.com/pydata/xarray/issues/10135 | |
Result (in VS Code debugger): | |
Shape | NumPy → Polars | NumPy → Pandas → Polars | |
----------------------------------------------------------------- | |
10,000 x 10 | 0.003997 s | 0.033097 s | |
10,000 x 200 | 0.002424 s | 0.050915 s | |
100,000 x 10 | 0.000278 s | 0.021541 s |
import numpy as np | |
import pandas as pd | |
import polars as pl | |
import time | |
from memory_profiler import memory_usage | |
# Array shapes to test | |
shapes = [ | |
(10_000, 10), | |
(10_000, 200), |
Main guide: https://etoast.net/posts/agilent_repair/
Repairing the power supply is not very feasible.
pip install micropython-rp2-rpi_pico-stubs
to install Python type checking helpers.from sympy import symbols, Eq, solve | |
# Define symbols | |
k1, k2, k3 = symbols('incoming_slope normal_slope outgoing_slope') | |
# Define the equation | |
equation = Eq((k1 - k2) / (1 + (k1*k2)), (k2 - k3) / (1 + (k2*k3))) | |
# Solve the equation for k3 | |
solution = solve(equation, k3) |
# pip install virtualbox | |
import virtualbox | |
vbox = virtualbox.VirtualBox() | |
machine = vbox.find_machine("Ubuntu 20") | |
session = machine.create_session() | |
session.console.keyboard.put_keys("Hello, world!") | |
# Source: https://github.com/sethmlarson/virtualbox-python/issues/142 |
// ==UserScript== | |
// @name Set GitHub Page Title to the Filename | |
// @namespace https://gist.github.com/DeflateAwning | |
// @version v0.1 | |
// @description When browsing a GitHub project, set the <title> to the filename and repo user/name. | |
// @author DeflateAwning | |
// @match https://github.com/*/*/blob/** | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== |
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Name=Teams Account - AccountName | |
Exec=teams-for-linux --appTitle "Teams - AccountName" --customUserDir="/home/user/.teams-data/account_AccountName" | |
Terminal=false | |
PrefersNonDefaultGPU=false | |
Icon=teams-for-linux | |
Type=Application | |
# place this file in ~/Desktop and/or ~/.local/share/applications/ (to add to the start menu) |