Instantly share code, notes, and snippets.

View dciequduck.sty
%%
%% This is file 'tciequtag.sty'.
%%
%% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
View stupdmap.cfg
# stupdmap.cfg
# To be placed in ~/.satysfi/dist/stupdmap
Nishiki-teki = C:/windows/fonts/nishiki-teki.ttf
View make-satysfi.sh
#!/bin/bash
set -eux
sudo apt -y update
sudo apt -y install build-essential git m4 unzip curl ruby
yes '' | sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)
opam init --auto-setup --comp 4.06.0 --disable-sandboxing
eval $(opam env)
View Dockerfile
FROM ocaml/opam2:debian-9-ocaml-4.06.0
USER root
RUN apt update && \
apt install -y build-essential autoconf git m4 unzip wget ca-cacert ca-certificates ruby --no-install-recommends && \
apt clean
USER opam
WORKDIR /home/opam/opam-repository
View test-zrget.lua
zrget = require 'zrget'
zrget.download(
'https://raw.githubusercontent.com/zr-tex8r/scllmk/master/doc/logo.png',
'logo.png',
function (d) return d:sub(1, 4) == '\137PNG' end)
-- EOF
View bxlocalnew.sty
%%
%% This is file 'bxlocalnew.sty'.
%%
%% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
View scpremiumeveryday.sty
%%
%% This is file 'scpremiumeveryday.sty'.
%%
%% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
View textimemodel1.pl
use v5.12;
use Time::HiRes 'time';
use List::Util qw( sum max min );
my $program = "timemodel";
my $verbose = 0;
sub main {
printf("%-18s avg--- sd---- max--- min---\n", "");
foreach my $n (0, 1, 10, 100, 1000) {
my $lbl = ($n <= 0) ? "Base" : "Len-$n";
View goto.tex
% plain TeX
% NOTE: It's a toy program. Don't be serious!
% \glabel{LABEL}: Declare a label.
% \goto{LABEL}: Jump to the label.
% \ifXXX...\gthen{LABEL}\fi: Jump if the condition holds.
% All the occurrences of \glabel, \goto, and \gthen must be enclosed
% with a single \beginreset...\endreset frame.
\catcode`\@=11 %!!!!!!!!!!!!!!!!!!!!!!!!
View test-devanagari.tex
% XeLaTeX or LuaLaTeX document; UTF-8
\documentclass[autodetect-engine,a4paper,ja=standard]{bxjsarticle}
\usepackage{fontspec}
\setmainfont{TeX Gyre Pagella}
\newfontfamily{\fChandas}[Script=Devanagari]{Chandas}
\newcommand*{\xSentence}[3]{\par\noindent
#1\\#2\\{\fChandas#3}\par\medskip}
\setlength{\parindent}{0pt}
\begin{document}