Skip to content

Instantly share code, notes, and snippets.

View vicapow's full-sized avatar

Victor vicapow

View GitHub Profile
@vicapow
vicapow / index.js
Created April 11, 2025 22:06
Generate unicode forms
(async () => {
const url = 'https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt';
const res = await fetch(url);
const text = await res.text();
const lines = text.split('\n');
const digitEntries = [];
for (const line of lines) {
if (!line.trim()) continue;
@vicapow
vicapow / index.js
Created April 11, 2025 21:49
generate numeric unicode character table
(async () => {
const [unicodeDataTxt, scriptsTxt] = await Promise.all([
fetch('https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt').then(res => res.text()),
fetch('https://www.unicode.org/Public/UCD/latest/ucd/Scripts.txt').then(res => res.text()),
]);
const scriptMap = [];
// Parse Scripts.txt to map codepoint ranges → script
for (const line of scriptsTxt.split('\n')) {
@vicapow
vicapow / main.tex
Created March 14, 2025 00:25
Flame effect with larger white part
\documentclass{article}
\usepackage{tikz}
\definecolor{flameOuter}{HTML}{33AAFF}
\pgfdeclareradialshading{multigradient}{\pgfpoint{0cm}{0cm}}{%
color(0cm)=(white);
color(0.5cm)=(white);
color(1cm)=(flameOuter)
}
@vicapow
vicapow / main.tex
Last active March 13, 2025 01:17
Flame like effect in Tikz
\documentclass{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz} % Required for creating graphics
\begin{document}
\section*{Example of a `Flame' like effect in Tikz}
\definecolor{flameOuter}{HTML}{33AAFF}
@vicapow
vicapow / main.tex
Created February 22, 2025 19:21
Example Gist
hello world
@vicapow
vicapow / hellocrixet.tex
Last active February 17, 2025 21:06
Debugging Gist File Uploads
\documentclass{article}
\begin{document}
Hello world!
\end{document}
@vicapow
vicapow / main.tex
Last active February 17, 2025 20:25
Crixet Gist
\documentclass{standalone}
\usepackage{tikz}
\usepackage[sfdefault]{FiraSans}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}
@vicapow
vicapow / main.tex
Last active January 31, 2025 01:53
Tiks cavity & medium drawing
\documentclass{article}
\usepackage{tikz}
\usepackage{mathtools}
\begin{document}
\begin{tikzpicture}
\foreach \x in {140,143,...,210} {
@vicapow
vicapow / main.tex
Last active December 28, 2024 05:30
Table Editor UX experiments
\documentclass{article}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{|l|c|}
\hline
Pittsburgh & 100 \\
\hline
@vicapow
vicapow / main.tex
Last active December 12, 2024 19:01
Example concentric layered diagram
\documentclass{article}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}
% Draw ovals first
\fill[red!50] (0, 0.8) ellipse (6cm and 3.8cm);