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 python3 | |
import sys | |
import tempfile | |
import io | |
import os | |
MANUAL=""" | |
Usage: my-lyx-headerutil.py COMMAND ARG ... |
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
% \mymeaning{command} -> Definition of \command | |
\makeatletter | |
\newcommand{\mymeaning}[1]{ | |
\begingroup% | |
\setlength{\parindent}{0em} | |
\setlength{\hangindent}{1em} | |
\edef\@tmp{\ifmmode\noexpand\mathtt\else\noexpand\texttt\fi} | |
\@tmp{% | |
\expandafter\string\csname #1\endcsname->% | |
\expandafter\meaning\csname #1\endcsname;% |
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 bash | |
# -*- mode: sh; coding: us-ascii-unix -*- | |
source libstacktrace || true | |
set -e -u -E | |
MANUAL=" | |
Usage: $0 INFILE OUTFILE [BLURRADIUS;default:20px] | |
Takes a document scan INFILE (an image) and produces a monochromatized |
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 bash | |
# -*- mode: sh; coding: us-ascii-unix -*- | |
source libstacktrace || true | |
# set -e -u -E | |
MANUAL=" | |
Usage: $0 [options] INPUT OUTPUT | |
$0 --inplace [options] INPUT |
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 bash | |
set -e -E -u | |
source libstacktrace || true | |
DEBUG=false | |
MANUAL=" | |
USAGE: $0 ( DIRECTORY | FILE ) ... |
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 bash | |
source libstacktrace || true | |
set -e -E -u | |
BOOGIEDIR="$(cygpath "$LOCALAPPDATA")/BoogieBoardSync/Downloads" | |
cd "$BOOGIEDIR" | |
MANUAL=" |
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
/// Usage: _ISONEARG() -> 1 | |
/// _ISONEARG(A) -> 1 | |
/// _ISONEARG(A,B,...) -> 0 | |
/// | |
/// Alternative to _IFEMPTY, that works with standard C. | |
/// Works for up to 100 arguments. | |
/// | |
/// Examples: | |
/// | |
/// "_ISONEARG()" -> 1 |
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
// Usage: _FORVARARGS(M,A0[,A1[,A2[...]]]) | |
// | |
// Equivalent to M(0,A0) M(1,A1) M(2,A2) ... | |
// Supports up to 32 Varargs. Emacs lisp code for generating included. | |
// Define the macro M(N, ARG) to generate useful code. | |
// | |
// Usage: _FORVARARGS_R(M,A0[,A1[,A2[...]]]) | |
// | |
// Equivalent to ... M(2,A2) M(1,A1) M(0,A0), i.e. reverse of _FORVARARGS. | |
// |
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
/* Comic Rocket New Pages Sorted.js */ | |
var NW = 4; /* number width */ | |
var MODE = 0; /* 1 for reordering the divs, 2 for creating a new format, 0 for dialog */ | |
function g(x,y){return Array.from(x.getElementsByClassName(y))}; | |
function ce(e,tag){var x=document.createElement(tag); if(e){e.appendChild(x)}; return x;} | |
function lpad(s,n){ s = ""+s;while(s.length<n){s=" "+s;} return s;} | |
function rpad(s,n){ s = ""+s;while(s.length<n){s=s+" ";} return s;} | |
var divs = g(document,"comics-item"); | |
var data = divs.map(function(c){ | |
var [current,total] = g(c,"progress-label")[0].textContent.split("/"); |
OlderNewer