Skip to content

Instantly share code, notes, and snippets.

View alexjbest's full-sized avatar
🐢

Alex J Best alexjbest

🐢
View GitHub Profile
def f(a,b):
print inspect.currentframe().f_code.co_name + "("+", ".join(map(lambda x: str(x.parent()) + str (x), locals().values()))+")"
return a+b
@alexjbest
alexjbest / pug.vim
Created June 12, 2018 19:54
Some tex imaps for vim
imap ;a \alpha
imap ;b \beta
imap ;c \chi
imap ;d \delta
imap ;e \epsilon
imap ;E \eta
imap ;f \phi
imap ;g \gamma
imap ;h \eta
imap ;i \iota
@alexjbest
alexjbest / mbx.vim
Created June 11, 2018 18:40
Mathbook tags for vim html syntax
" mathbook tag names
syn keyword htmlTagName contained definition theorem section subsection subsubsection statement
syn keyword htmlTagName contained m me men mn md mdn mathbook chapter
syn keyword htmlTagName contained frontmatter titlepage preface author
syn keyword htmlTagName contained date docinfo book article subtitle
syn keyword htmlTagName contained backmatter references biblio url
syn keyword htmlTagName contained macros term lemma example proposition proof
syn keyword htmlTagName contained remark personname mrow xref fact corollary title index author objectives p blockquote pre sidebyside sage figure table listing poem program c console image tabular paragraphs definition theorem corollary lemma algorithm proposition claim fact identity axiom conjecture principle heuristic hypothesis assumption remark convention note observation warning insight computation technology aside biographical historical list example question problem project activity exploration task investigation assemblage exercise contr