This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function draw_dep(T::Type; package_name::Bool=false, upper_bound::Bool=true) | |
_draw(T::ANY) = for t in subtypes(T) | |
print(g, " \"") | |
format_type(T) | |
print(g, "\" -> \"") | |
format_type(t) | |
println(g, '\"') | |
_draw(t) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#=== Settings ===# | |
setopt AUTOCD | |
setopt AUTOPUSHD PUSHDMINUS PUSHDIGNOREDUPS | |
disable r | |
DIRSTACKSIZE=10 | |
HISTFILE=~/.zsh_history | |
HISTSIZE=65535 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ylxdzsw's minimalistic pac | |
const [DIRECT, PROXY] = "__DIRECT__" == "__DIR" + "ECT__" // __xx__ will be replaced when used within some softwares | |
? ["DIRECT", "SOCKS5 localhost:1080"] | |
: ["__DIRECT__", "__PROXY__"] | |
const list = [ | |
// frequent | |
/google/, | |
"github.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper]{article} | |
\usepackage{pdfpages} | |
\begin{document} | |
\includepdf[pages=-, scale=1, angle=30]{p01.pdf} | |
\includepdf[pages=-, scale=1, angle=30]{p02.pdf} | |
\includepdf[pages=-, scale=1, angle=30]{p03.pdf} | |
\includepdf[pages=-, scale=1, angle=30]{p04.pdf} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s: server, c: cdn, a: ad, t: tracker, o: other, u: unknown | |
a doubleclick.net | |
a adnxs.com | |
t google-analytics.com | |
c akamaihd.net | |
t fonts.gstatic.com | |
a dotomi.com | |
a lkqd.net | |
a advertising.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Fire | |
using Dates | |
using Base64 | |
using Sockets | |
using OhMyJulia | |
using Statistics | |
import Base.adjoint # monky patch | |
adjoint(x::Unsigned) = ntoh(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function regen(t) | |
local cv1 = readInteger(0x93CCB120) | |
local cv2 = readInteger(0x93CCB0E4) | |
if cv1 < 34 then | |
writeInteger(0x93CCB120, cv1 + 1) | |
end | |
if cv2 < 4 then | |
writeInteger(0x93CCB0E4, cv2 + 1) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pack_ico(io::IO, pngs::Bytes...) | |
# all values are in little endian | |
# header | |
write(io, 0x0000) # reserved to be 0 | |
write(io, 0x0001) # 1 for .ico, 2 for .cur | |
write(io, length(pngs) % UInt16) # number of images | |
# image directory | |
c = 6 + 16length(pngs) # offsets of current image, initial value is the header length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Base64 | |
write("katex.css", replace(read("katex.min.css", String), r"fonts/[^.]+\.woff2.*?}" => s -> "data:font/woff2;base64,$(base64encode(read(s[1:findfirst(x->x==')', s)-1]))))}")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uuzero: ⁰₀ | |
uuone: ¹₁ | |
uutwo: ²₂ | |
uuthree: ³₃ | |
uufour: ⁴₄ | |
uufive: ⁵₅ | |
uusix: ⁶₆ | |
uuseven: ⁷₇ | |
uueight: ⁸₈ | |
uunine: ⁹₉ |
OlderNewer