Skip to content

Instantly share code, notes, and snippets.

💭
🍣

Takayuki YATO zr-tex8r

💭
🍣
Block or report user

Report or block zr-tex8r

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zr-tex8r
zr-tex8r / saizeriya-test.saty
Created May 28, 2019
SATySFi:「サイゼリヤで1000円あれば最大何kcal摂れるのか」を解くパッケージ
View saizeriya-test.saty
@require: stdja
@require: saizeriya
%@import: saizeriya
%------------------------------------------------- メニューデータ
let the-menu = [
(|calorie=130;cost=299;name=`彩りガーデンサラダ`|);
(|calorie=115;cost=349;name=`小エビのサラダ`|);
(|calorie=134;cost=299;name=`やわらかチキンのサラダ`|);
(|calorie=92;cost=299;name=`わかめサラダ`|);
@zr-tex8r
zr-tex8r / menu.csv
Created May 25, 2019
Pandoc:「サイゼリヤで1000円あれば最大何kcal摂れるのか」を解くLuaフィルタ
View menu.csv
彩りガーデンサラダ 130 299
小エビのサラダ 115 349
やわらかチキンのサラダ 134 299
わかめサラダ 92 299
イタリアンサラダ 196 299
シーフードサラダ 229 599
半熟卵とポークのサラダ 433 599
コーンクリームスープ 142 149
冷たいパンプキンスープ(季節限定) 105 149
たっぷり野菜のミネストローネ(季節限定) 222 299
@zr-tex8r
zr-tex8r / bxpgfcurpage.sty
Last active May 18, 2019
LaTeX:とにかくTikZでcurrent pageしたいときに使うやつ
View bxpgfcurpage.sty
%%
%% This is file 'bxpgfcurpage.sty'.
%%
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
@zr-tex8r
zr-tex8r / pxxspace.sty
Created Apr 30, 2019
LaTeX: (u)pLaTeXでxspaceするためのやつ
View pxxspace.sty
%%
%% This is file 'pxxspace.sty'.
%%
%% Copyright (c) 2019 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%
@zr-tex8r
zr-tex8r / newera.tex
Created Mar 26, 2019
LaTeX:BXglyphwikiで新元号するかもしれないやつ
View newera.tex
%#!lualatex
\documentclass[margin=2bp]{standalone}
\usepackage[svgnames]{xcolor}
\usepackage{tikz,tikzducks,luatexja}
\usepackage[cache=5]{bxglyphwiki}
\definecolor{myframe}{rgb}{0.65,0.50,0.35}
\begin{document}
\begin{tikzpicture}[x=1bp,y=1bp]
\useasboundingbox (0,0) rectangle (140,140);
\draw[myframe, line width=6pt, rounded corners=2pt]
@zr-tex8r
zr-tex8r / reviewbreakall.tex
Last active Mar 15, 2019
LaTeX: \reviewbreakall のようなナニカ
View reviewbreakall.tex
\documentclass{article}
\makeatletter %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN
\newif\ifreview@ba@break
\def\review@ba@end{\review@ba@end@}
\DeclareRobustCommand{\reviewbreakall}[1]{%
\begingroup
\review@ba@breakfalse
\review@break@all@a#1\review@ba@end
\endgroup
}
@zr-tex8r
zr-tex8r / test.enc
Created Feb 21, 2019
TeX: IPAex明朝で欧文TFMしてdvipdfmxするとアレ
View test.enc
/test [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/zero /one /two /three /four /five /six /seven
/eight /nine /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
@zr-tex8r
zr-tex8r / test-bad.tex
Created Feb 2, 2019
TeX言語:表組み(alignment)中でチョット複雑なコードを動かすとアレ
View test-bad.tex
% This code gives an error.
\documentclass[a4paper]{article}
\makeatletter %!!!!!!!!!!!!!!!!!!!!!!!!! TeX code BEGIN
\newcount\xx@k \newcount\xx@n
% \EvenOddTable{<max-number>}
\newcommand*\EvenOddTable[1]{%
\global\xx@k=\z@ \global\xx@n=#1\relax
\begin{tabular}{cc}%
Even&Odd\\\hline
\@whilenum{\xx@k<\xx@n}\do{%
@zr-tex8r
zr-tex8r / squareroot.saty
Created Jan 7, 2019
SATySFi:サイン・コサインを使って平方根を求める
View squareroot.saty
@require: stdja
@require: list
% sqrt r = sin(acos(1 - 2r)/2) (for 0 < r < 1)
let sqrt-b r =
sin (acos (1. -. r *. 2.) /. 2.)
% NOTE: behavior undefined
let get-invalid-value () = 0. /. 0.
@zr-tex8r
zr-tex8r / fillsnowman.satyh
Created Jan 5, 2019
SATySFi:傾いた☃を出す
View fillsnowman.satyh
% fillsnowman.satyh
%
% Copyright (c) 2019 Takayuki YATO (aka. "ZR")
% GitHub: https:%github.com/zr-tex8r
% Twitter: @zr_tex8r
% Distributed under the MIT License.
@require: pervasives
@require: list
You can’t perform that action at this time.