This gist contains screenshots for the jupytext.vim.
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
on run {input, parameters} | |
set cmd to "" | |
if input is not {} then | |
set filePath to POSIX path of input | |
set cmd to ":e " & filePath | |
end if | |
tell application "iTerm" | |
set mywindow to (create window with profile "neovim") | |
tell the current session in mywindow |
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 is file `apsrev4-2-titles.bst', and is a hand-edited version of apsrev4-2.bst. | |
%% Its only modification is that it will display titles for articles. | |
%% Unlike the "longbibliography" option recommended at | |
%% https://journals.aps.org/revtex/revtex-faq#Bibtex, | |
%% it does not write out the first names of all authors. | |
%% The feature of apsrev4.2 to add DOI links is preserved. | |
%% | |
%% Author: Michael Goerz <https://michaelgoerz.net> | |
%% |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
" Terminal fixes | |
" | |
" These originate from some linux distribution's system vimrc. I can't say | |
" that I understand the details what's going on here, but without these | |
" settings, I've had problems like vim starting in REPLACE mode for | |
" TERM=xterm-256color (neovim is fine) | |
if &term =~? 'xterm' | |
let s:myterm = 'xterm' | |
else |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
jupyter: jupytext: text_representation: extension: .md format_name: markdown format_version: '1.0' jupytext_version: 0.8.6 kernelspec: display_name: Python 3
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 | |
import html | |
from lxml.etree import tostring | |
from ever2simple.converter import EverConverter | |
def my_unescape(s): | |
s = s.replace(""", "PROTECTEDQUOT=====") | |
s = html.unescape(s) | |
s = s.replace("PROTECTEDQUOT=====", """) |
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 | |
"""Script to generate a yearly calendar via luatex. | |
Requires the `lualatex` executable to be in the PATH. | |
Requires the Rotis Semi Serif (55 Roman) and Rotis Semi Sans (55 Regular) | |
fonts, available at | |
https://www.linotype.com/49242/rotis-semi-serif-family.html | |
https://www.linotype.com/49198/rotis-semi-sans-family.html |