Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details>
tag!
<details>
<summary>Summary Goes Here</summary>
"%<-%" <- function(x,y) call("<-",substitute(x),substitute(y)) | |
returm <- function(x) call("return",substitute(x)) | |
exec <- quote | |
join <- function(ss,sep) { | |
res <- "" | |
for (s in ss) { | |
res <- paste(res,s,sep=sep) | |
} | |
res |
\usepackage{python} | |
%Добавляет на каждую страницу hash текущего git-коммита | |
\begin{python} | |
#! /usr/bin/python | |
import os, string | |
cmd = 'git rev-parse --verify HEAD' | |
fpipe = os.popen(cmd) | |
piperesult = fpipe.read() | |
fpipe.close() |
#!/bin/sh | |
# hack4tex 0.1 | |
# Copyright (c) 2016 Christian Himpe | |
# released under BSD 2-Clause License ( opensource.org/licenses/BSD-2-Clause ) | |
# based on Stephan Lehmke's answer to "How do I use TrueType Fonts with PDFTeX | |
# using otftotfm?" on tex.stackexchange.com/a/52902 | |
# | |
# requires otftotfm which is part of lcdf-typetools | |
# |