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 pathlib as p | |
import re | |
import typing as t | |
import typing_extensions as te | |
from docx import api | |
from docx.shared import Pt, RGBColor | |
from docx.document import Document | |
from docx.text.font import Font |
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 add(x: int, y: int) -> int: | |
'''blablabla | |
blablabla | |
blablabla | |
blablabla [`nothing`][main.nothing] blablabla | |
Args: | |
x (int): blablabla |
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 collections as c | |
import copy | |
import random | |
import typing as t | |
if t.TYPE_CHECKING: | |
from typing_extensions import Self | |
Category = t.Hashable |
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
__all__ = ['SearchCV'] | |
import copy | |
import pathlib as p | |
import pickle | |
import typing as t | |
import numpy as np | |
import pandas as pd |
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
''' | |
Reference: | |
- https://www.cups.org/doc/options.html#OPTIONS | |
''' | |
import hashlib | |
import pathlib as p | |
import subprocess as sp | |
import streamlit as st |
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
__root__ = __import__('pathlib').Path(__file__).parent | |
import pathlib as p | |
import shutil | |
import subprocess | |
import typing as t | |
Path = t.Union[str, p.Path] |
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 python | |
# Try to determine how much RAM is currently being used per program. | |
# Note per _program_, not per process. So for example this script | |
# will report RAM used by all httpd process together. In detail it reports: | |
# sum(private RAM for program processes) + sum(Shared RAM for program processes) | |
# The shared RAM is problematic to calculate, and this script automatically | |
# selects the most accurate method available for your kernel. | |
# Licence: LGPLv2 |
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
# docker build -t of:orig . | |
# docker run -dit of:orig | |
# docker exec -it `docker container ls --format "{{.ID}}"` bash | |
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive \ | |
DIRECTORY=/root/OpenFOAM \ | |
ALIASES=/root/.bash_aliases |
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
% Extracted from http://ylbook.com/cms/web/chuantongsecai/chuantongsecai.htm | |
% by LianTze Lim ([email protected]), 27 December 2015 | |
% v1.1 Updated 7 May 2018: 端憲 @heangfat 新增三正色並加傳統字色名 | |
\ProvidesPackage{cncolours}[2018/07/05 v1.1 Chinese colour names] | |
\RequirePackage{xcolor} | |
\definecolor{粉红}{RGB}{255,179,167} | |
\definecolor{粉紅}{RGB}{255,179,167} | |
\definecolor{妃色}{RGB}{237,87,54} | |
\definecolor{品红}{RGB}{240,0,86} | |
\definecolor{品紅}{RGB}{240,0,86} |
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
\documentclass{article} | |
\usepackage{physics} | |
\begin{document} | |
\def\cache{ | |
\exp\qty[ | |
- \frac{\xi^2}{4t\nu} | |
- \frac{u_0\xi}{2\nu} | |
+ \frac{x\xi}{2t\nu} | |
- \frac{Lu_0\sin^2{\left(\frac{\pi\xi}{L} \right)}}{2\pi\nu} | |
] |
NewerOlder