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
-- Install: save the file in $(pandoc data dir)/filters | |
-- pandoc --filter quiver.lua | |
-- call this filter before any cross-referencing filters like xnos or crossref | |
-- Markdown syntax: | |
-- :::{.quiver #eq:label} | |
-- <paste LateX Output from q.uiver.app <including the link> | |
-- ::: | |
-- Reference with -@eq:label for just the number without eq. prefix. |
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
/* | |
1. Place this in | |
%USERPROFILE%\.vscode\extensions\shd101wyy.markdown-preview-enhanced-0.5.16\node_modules\@shd101wyy\mume\styles\preview_theme | |
2. Add to VSCode settings: | |
"markdown-preview-enhanced.previewTheme": "slides.css", | |
*/ | |
/*! | |
Font definitions takes from: | |
* LaTeX.css (https://latex.now.sh/) |
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
<!-- | |
1. Work out the data dir: pandoc --version | |
2. Put this file in the data directory: %APPDATA%/pandoc/templates | |
3. Add pandoc option: --template=bodyonly.html | |
4. Add YAML metadata to .md file: title, subtitle, date, author, toc, toc-title, include-beofre, include-after | |
--> | |
$for(include-before)$ | |
$include-before$ | |
$endfor$ |
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
Get-Content .\log\your_log.log -Tail 0 -Wait |
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
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI" | |
iwr -useb get.scoop.sh | iex | |
scoop install aria2 | |
scoop install git-with-openssh 7zip | |
scoop bucket add extras | |
scoop update | |
scoop install vscode windows-terminal | |
scoop install firefox googlechrome |
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 scrapy | |
from scrapy import signals | |
from scrapy.signalmanager import dispatcher | |
class MySpider(scrapy.Spider): | |
... | |
# gather the results, see: https://stackoverflow.com/a/40240712 | |
nurseries = [] |
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
""" | |
This script types the content of your clipboard. | |
# setup: | |
pip install pyautogui, pyperclip | |
# usage: | |
python ./type_clipboard.py | |
# notes: |
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 glob | |
import sys | |
import cv2 | |
import numpy as np | |
# %% | |
def remove_background(frame): |
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
''' | |
WARNING: This script emulates mouse and keyboard. | |
To abort the emulation, move your MOUSE to the TOP LEFT CORNER of the screen. | |
Usage: | |
1. Create an empty Python file and start the interactive window (let it load). | |
2. With mouse over the new file, use a keyboard shortcut to open a terminal and excute this file with python. | |
3. The script will remove all contents from your empty file and start | |
writing the same cell over and ove again and executing it with the | |
ctrl + enter shortcut. |
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
#!/usr/bin/env sh | |
# Pre commit hook | |
# autoformat | |
black -q . | |
# lint | |
flake_out="$(flake8 .)" | |
flake_code=$? |
NewerOlder