This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
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...
- Install Tasker.
- Install Termux.
- Install Termux tasker plugin.
- Open Termux and write
termux-setup-storage
, give it permissions.
- Open AdGuard and go to Apps → Mullvad VPN → Disable routing through AdGuard.
- (In AdGuard) go to Settings → Filtering → Network → Routing Mode and choose Automatic Proxy.
- (In AdGuard) and go to Settings → Filtering → Network → Proxy → Proxy server.
- Tap the Add proxy server and fill in the fields:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"python.autoComplete.extraPaths": ["./app"], | |
"pylint.args": [ | |
"--rcfile=${workspaceFolder}/app/" | |
], | |
"python.analysis.extraPaths": [ | |
"./app" | |
] | |
} |
OlderNewer