Skip to content

Instantly share code, notes, and snippets.

@hi-ogawa
hi-ogawa / markdown-tex-demo.txt
Last active May 5, 2020 02:40
Markdown TeX Demo
$$$
% Quick begin/end
\newcommand{\Ba}[0]{\begin{aligned}}
\newcommand{\Ea}[0]{\end{aligned}}
\newcommand{\Bc}[0]{\begin{cases}}
\newcommand{\Ec}[0]{\end{cases}}
\newcommand{\Bm}[0]{\begin{matrix}}
\newcommand{\Em}[0]{\end{matrix}}
\newcommand{\Bmp}[0]{\begin{pmatrix}}
\newcommand{\Emp}[0]{\end{pmatrix}}
@hi-ogawa
hi-ogawa / complex-dynamics
Last active May 8, 2020 05:11
complex-dynamics
- Basics
@hi-ogawa
hi-ogawa / mechanics
Last active May 5, 2020 02:32
mechanics
- Rigid body
- Constrained dynamics
- Position-based dynamics
@hi-ogawa
hi-ogawa / hyperbolic-geometry
Last active May 5, 2020 02:39
hyperbolic-geometry
- Mobius transform
- Half plane
- Cayley transform, Hyperbolic stereographic projection
@hi-ogawa
hi-ogawa / curvature
Last active June 26, 2021 09:59
curvature
- [Curve](https://hi-ogawa.github.io/markdown-tex/?id=e40372524f96337f1f2066ad332b4d2b&filename=curvature-00-curve)
- [Surface](https://hi-ogawa.github.io/markdown-tex/?id=e40372524f96337f1f2066ad332b4d2b&filename=curvature-01-surface)
@hi-ogawa
hi-ogawa / misc-00
Last active August 2, 2020 06:34
misc
$$$
% From AsciiMath
\newcommand{\bb}[0]{\mathbf}
\newcommand{\bbb}[0]{\mathbb}
\newcommand{\cc}[0]{\mathcal}
\newcommand{\RR}[0]{\bbb{R}}
\newcommand{\CC}[0]{\bbb{C}}
\newcommand{\ZZ}[0]{\bbb{Z}}
\newcommand{\xx}[0]{\times}
\newcommand{\del}[0]{\partial}
@hi-ogawa
hi-ogawa / b-spline
Last active June 18, 2020 12:02
b-spline
- basics
@hi-ogawa
hi-ogawa / Procfile
Last active April 19, 2022 19:09
Lichess Development Setup
# Basic feature
lila: cd lila && ./lila run
lila-ws: cd lila-ws && sbt run
redis: docker-compose up redis
mongo: docker-compose up mongo
# Computer analysis
fishnet1: docker-compose up fishnet1
# Computer play
@hi-ogawa
hi-ogawa / README.md
Last active May 20, 2021 04:55
Chess.com Drills Download

Usage

$ npm install jsdom argparse

$ node main.js https://www.chess.com/drills/endgame-fundamentals --format pgn
:: Downloading https://www.chess.com/drills/endgame-fundamentals?page=1
:: Downloading https://www.chess.com/drills/endgame-fundamentals?page=2
:: Downloading https://www.chess.com/drills/endgame-fundamentals?page=3
:: Downloading https://www.chess.com/drills/endgame-fundamentals?page=4
@hi-ogawa
hi-ogawa / README.md
Last active July 10, 2021 10:17
Russian Alphabet

Run this script on the wiki page https://en.wikipedia.org/wiki/Russian_alphabet

SCRIPT

nodes = document.querySelectorAll("table:nth-of-type(3) tr > td:nth-of-type(8) > span[lang=ru]");
nodes = Array.from(nodes)
console.log(nodes.map(node => node.querySelector("b").textContent).join(""))
console.log(nodes.map(node => node.textContent).join(" "))