Skip to content

Instantly share code, notes, and snippets.

View Liam0205's full-sized avatar
🎯
Focusing

Liam Huang Liam0205

🎯
Focusing
View GitHub Profile
@Liam0205
Liam0205 / 0x00. environment check.sh
Last active June 18, 2023 09:23
XinaminePatcher
if ! type dpkg-deb >/dev/null 2>&1; then
echo "Please install 'dpkg-deb'."
fi
if ! type file >/dev/null 2>&1; then
echo "Please install 'file' from Bingner or Procursus."
fi
if ! type otool >/dev/null 2>&1; then
echo "Please install 'odcctools'."
@Liam0205
Liam0205 / install_procursus.sh
Created June 16, 2023 07:35
Install Procursus on macOS (>= 11)
#!/usr/bin/env bash
set -eu
DARWIN_VERSION=`uname -r | cut -d'.' -f1 | tr -d '\n'`
MIRROR='https://apt.procurs.us'
SUITES='big_sur'
COMPONENTS='main'
procursus_bootstrapped=`if [[ -e '/opt/procursus/.procursus_strapped' ]]; then echo 'true'; else echo 'false'; fi`
@Liam0205
Liam0205 / 00. Feedback.md
Last active May 27, 2023 05:22
Feedback on using Crane with Dopamine.

Environment

  • iPhone 13 Pro
  • iOS 15.4.1
  • Dopamine 1.0.5
  • Choicy 1.4.9
  • Crane 1.3.10
  • Ellekit 1.0

Issues

@Liam0205
Liam0205 / access_member_pointer.cc
Last active October 11, 2020 14:56
Implementation of `operator->*` for `std::shared_ptr`
#include <iostream>
#include <functional>
#include <type_traits>
#include <cstddef>
#include <utility>
#include <memory>
namespace yuuki {
template<size_t> // begin with 0 here!
struct placeholder_template
$ platex-ng ltxtest
This is pTeX-ng, Version 3.14159265 (preloaded format=platex-ng)
entering extended mode
(ltxtest.tex
pLaTeX2e <2020-04-12u03> (based on LaTeX2e <2020-02-02> patch level 5)
(/usr/local/texlive/2020/texmf-dist/tex/latex/ctex/ctexart.cls
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3kernel/expl3-code.tex
(/usr/local/texlive/2020/texmf-dist/tex/latex/l3kernel/l3deprecation.def))
! Undefined control sequence.
\documentclass{ctexbook}
\usepackage{calc}
% \usepackage{geometry}
% \geometry{showframe}
\usepackage{colortbl}
\definecolor{titlecolor}{rgb}{0.503906,0.503906,0.734375}
\ctexset {
chapter = {
beforeskip = 0pt,
fixskip = true,
\documentclass{article}
\usepackage{enumitem}
\setlist[enumerate,2]{label=\arabic*)}
\begin{document}
\begin{enumerate}
\item one
\begin{enumerate}
\item one
\item two
\end{enumerate}
\documentclass[11pt, a4paper]{article}
\usepackage{ctex}
\usepackage{pifont}
\usepackage{array}
\usepackage{enumitem}
\usepackage{varwidth}
\newlist{tabitemize}{itemize}{1}
\setlist[tabitemize]{label=\ding{118},nosep,after=\strut}
@Liam0205
Liam0205 / example.md.txt
Last active March 29, 2020 14:35
writing markdown in LaTeX by using the markdown package
# I'm a markdown file.
And I can do *emphasis*.
## With sub-headers
> Block quotes are
> written like so.
>
> They can span multiple paragraphs,
@Liam0205
Liam0205 / markdown_test.tex
Last active September 9, 2020 16:17
md -> tex
\documentclass[UTF8]{ctexart}
\usepackage{zhlipsum}
\usepackage{markdown}
\markdownSetup{
renderers = {
link = {#1}, % Render a link as the link label.
emphasis = {\emph{#1}}, % Render emphasis using `\emph`.
},
hybrid = true,
fencedCode=true,