Skip to content

Instantly share code, notes, and snippets.

View ctrlcctrlv's full-sized avatar
🛠️
happy hacking

Fredrick Brennan ctrlcctrlv

🛠️
happy hacking
View GitHub Profile
@ctrlcctrlv
ctrlcctrlv /
Created February 18, 2020 13:17
Debug info for a 公 in a certain vexatious Chinese font
FT_Render_Glyph: bitmap 32x30, gray 8-bit bitmap (mode 2)
Total coverage: 42196
MD5 checksum: 701AB01ABA4457D4D895C26B1C4FC418
Netpbm image: start
P2 32 30 255
0 0 0 0 0 0 0 0 0 0 0 0 0 26 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 229 249 187 62 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 54 164 241 252 81 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 179 237 22 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 220 167 0 0 0 0 0 0 0 0 0 0 0 0 0
@ctrlcctrlv
ctrlcctrlv / manage_guidelines.py
Created June 9, 2020 03:25
FontForge "Community guidelines" authoring script
#!/usr/bin/python3
# This program outputs the "Link to this section" links, and also a table of
# contents for the "Community guidelines" wiki FontForge page.
#
# Warning: pretty hacky...
#
# Original author: Fredrick R. Brennan
# License: FontForge original BSD license
#
# Run as e.g.:

(Note: This brief is a best effort by a non-attorney (in Philippines or anywhere else). It also is just "in case", "if ever" needed. It's unlikely to ever be needed, one would hope. But, multiple people brought this possibility to me, so I will save this in case I need it in a hurry, to challenge some ridiculous attempt to further subvert the Philippine judicidial system. The facts it relies on have not yet come to pass, and hopefully never will. Jim Watkins has not refiled and has not done forum shopping to my knowledge as of 13 June 2020. Thus, why there are XXX's.)

Petitioner Jim Watkins continues to further constipate a constipated court system with his frivolous citizenship petitions which are utterly devoid of merit. This behavior, especially during the COVID-19 pandemic, is extraordinarily reckless. Why should petitioner Watkins get two cases in Court, after withdrawing his first, when many Filipinos have not even been heard once on much more urgent petitions?

As the Supreme Court has

@ctrlcctrlv
ctrlcctrlv / README.md
Last active June 18, 2020 07:24
Differences in the Renato Corona _Rappler_ article from before the cyberlibel law became law and after

This is proof that only the only change made to the assailed Rappler Renato Corona before and after the passage of the Cybercrime Prevention Act of 2012 was changing the word 'evation' to 'evasion'.

@ctrlcctrlv
ctrlcctrlv / hlist.wiki
Last active June 28, 2020 07:17
Not very pretty pretty printed output
{{
hlist
| 1
= {{
#if:
{{{
1
| }}}
| 1
= <
@ctrlcctrlv
ctrlcctrlv / ニートの歌
Last active July 3, 2020 21:36
ニートの歌 歌詞など
ニートの歌
The NEET's song
SECTION ONE: ON SCREEN WORDS
章1号:画面上言葉
NEET GENERATION
もう ニート しかなれない
"I no longer want to be a NEET"
\begin[papersize=250mm x 125mm]{document}\script[src=packages/texmode]\texmode[_="% it is recommended to put the above on one line so error lineno's continue to function ] <-- don't touch me either, i fix vim!
% sile -d texmode examples/evil?.sil && firefox 'file://'$PWD`bash --login -c 'source ~/.profile && urlencode ''/examples/evil?.pdf'`
\script[src=packages/rebox]
\script[src=packages/font-fallback]
\script[src=packages/features]
\script[src=packages/frametricks]
\script[src=packages/strike]
\script[src=packages/unichar]
\script[src=packages/rotate]
\font:add-fallback[family=DejaVu Sans]
local mHatnote = require('Module:Hatnote')
local getArgs = require('Module:Arguments').getArgs
local p = {}
local function image()
return '[[Image:wikisource-logo.svg|12px]]'
end
local function ps(ps)
if ps == 'no' then
@ctrlcctrlv
ctrlcctrlv / IDCSequenceClasses.py
Created July 17, 2020 15:50
Possible IDC sequence OpenType class names
names = {
'⿰': ("Left", "Right"),
'⿱': ("Above", "Below"),
'⿲': ("LeftOf3", "HMiddleOf3", "RightOf3"),
'⿳': ("TopOf3", "VMiddleOf3", "BottomOf3"),
'⿴': ("Surrounding", "Surrounded"),
'⿵': ("SurroundingFromAbove", "SurroundedFromAbove"),
'⿶': ("SurroundingFromBelow", "SurroundedFromBelow"),
'⿷': ("SurroundingFromLeft", "SurroundedFromLeft"),
'⿸': ("SurroundingFromUpperLeft", "SurroundedFromUpperLeft"),