export PYTHONPATH=path
For current working directory:
export PYTHONPATH=.
%% Transfer function information | |
% This script takes either polynomial coefficients for the numerator and denominator | |
% OR zero and pole locations (factorized roots) + gain | |
% OR characteristic equation (undamped natural frequency and damping ratio) | |
% of a system with a second order complex pole | |
% of the transfer function of a system, and then returns: | |
% 1. A graph of system's impulse response. | |
% 2. A graph of the system's step response. | |
% 3. The pole-zero diagram of the system. | |
% 4. The factorized transfer function printed with LaTeX. |
// Using the launch settings below, | |
// you can debug (F5) modules inside subfolders | |
// that import files from parent- or sister folders | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Run Module With Path", | |
"type": "python", | |
"request": "launch", |
I use Obsidian git on PC, and this workaround (since the plugin doesn't support mobile) to seamlessly* sync my notes to and from my phone. Using these instructions you create an automation for pulling every time you open Obsidian, and pushing every time you close it.
* you can still get merge conflicts...
termux-setup-storage
, give it permissions.def i_type(s): | |
op = s[0:6] | |
rs = s[6:11] | |
rt = s[11:16] | |
imm = s[16:] | |
return f"{op} {rs} {rt} {imm}" | |
def r_type(s): | |
op = s[0:6] | |
rs = s[6:11] |
import re, pyperclip | |
# Changes | |
# $...$ to \(...\) | |
# $$...$$ to \[...\] | |
# [[a|b]] to b | |
# }} to } } | |
# *abcd* to <i>abcd</i> | |
# **abcd** to <b>abcd</b> | |
# markdown bulleted lists (using -) to html <ul>...</ul> |