Skip to content

Instantly share code, notes, and snippets.

@user202729
user202729 / A Kuratowski theorem for the projective plane_new.pdf
Last active October 7, 2024 15:17
"A Kuratowski theorem for the projective plane" — Dan Archdeacon thesis — bookmarked
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@user202729
user202729 / .gitignore
Last active August 2, 2024 02:37
rama's nonbug?
/a.o
/b.o
/c.o
/program

How do I build libmupdf.so?

git clone https://github.com/ArtifexSoftware/mupdf
cd mupdf
make shared build=debug
# or:
make shared-debug
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{makecell}
\newcolumntype{x}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage{tikz}
\begin{document}
\newcommand\diag[4]{%
\multicolumn{1}{@{}p{#2}@{}|}{%
@user202729
user202729 / README.md
Last active October 11, 2024 09:24
perf record [unknown] frames

If you see [unknown], the following might be useful assuming you're using --call-stack dwarf:

  • Note that --call-graph dwarf,1024 (where 1024 is the stack size) dumps first 1024 bytes of the stack to the record file, then use DWARF debug information to deduce the frames later.

    This is quite inefficient (because it dumps the whole stack instead of just the addresses for each sample), but more importantly, if the stack is too deep (1024 bytes is insufficient) then the result is [unknown] frames.

    So, either try increasing it to dwarf,65528 (which is the maximum on my machine), or if it still doesn't work, --call-graph lbr or --call-graph fp (the last one may need recompile).

Other things to try:

@user202729
user202729 / A-README.md
Last active September 16, 2024 11:34
Footnote in tabular

Resource for answer in https://tex.stackexchange.com/questions/109467/footnote-in-tabular-environment .

Packages to be tested:

@user202729
user202729 / SageMath-cheat-sheet.pdf
Last active December 2, 2023 07:36
SageMath cheat sheet companion for the Napkin "number field" chapter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@user202729
user202729 / A-README.md
Created November 12, 2023 05:12
note-seaweed