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 os | |
def article_data() -> dict: | |
""" | |
json file keeps the record of the "age" of the newest file in the directory. | |
""" | |
with open('./last_ocr_file.json', 'r') as database: | |
return json.load(database) | |
def check_ocred(file: str, directory: str) -> bool: |
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
# scientific notion with number of decimals after period | |
big_number: int = 1_620_000_000 | |
print(f'{big_number:.2e}') | |
# format dates on the fly | |
from datetime import datetime | |
now: datetime = datetime.now() | |
print(f'{now:%d.%m.%y}') | |
# nesting f-strings |
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
gem install eventmachine -v '1.2.7' -- --with-ldflags="-Wl,-undefined,dynamic_lookup" |
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
{ | |
"Rawnly/gist.nvim", | |
cmd = { "GistCreate", "GistCreateFromFile", "GistsList" }, | |
config = true, | |
requires = { | |
"samjwill/nvim-unception", | |
lazy = true, | |
event = "VeryLazy", | |
init = function() vim.g.unception_block_while_host_edits = true end | |
}, |
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
sudo rm -rf ~/.local/share/nvim/* |
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
:exe 'e' ddc_tabnine#config_dir() . '/tabnine_config.json' |
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
% !TEX program = lualatex | |
% !TEX encoding = UTF-8 | |
\documentclass[20pt, extrafontsizes]{memoir} | |
\usepackage[letterpaper,vmargin={1in,1in},hmargin={1in,1in}]{geometry} | |
\usepackage{fullpage} | |
\usepackage{microtype} | |
\usepackage{fontspec} |
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
" [email protected] neovim configuration | |
set tabstop=4 softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smartindent | |
set exrc | |
set guicursor=i:block | |
set nu | |
set relativenumber |
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
name: incipit; | |
gabc-copyright: copyright on this gabc file; | |
score-copyright: copyright on the source score; | |
office-part: introitus/...; | |
occasion: in church calendar; | |
meter: for metrical hymns; | |
commentary: source of words; | |
arranger: name of arranger; | |
author: if known; | |
date: xi c; |
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
% !TEX program = lualatex | |
\documentclass{amsbook} | |
\author{} | |
\usepackage{geometry} | |
% BOOKLET: | |
%\geometry{paperheight=8.5in, paperwidth=5.5in, top=0.5in, bottom=0.5in, inner=0.5in, outer=0.5in,} | |
% LETTERPAPER: |
NewerOlder