Skip to content

Instantly share code, notes, and snippets.

View PassionPenguin's full-sized avatar
♥️
std::cout << "Happy Spring Days" << std::endl;

Hoarfroster PassionPenguin

♥️
std::cout << "Happy Spring Days" << std::endl;
View GitHub Profile
@PassionPenguin
PassionPenguin / README.md
Last active July 17, 2022 16:28
Bookan Book Generator

README

How to

  1. make sure you have access to /storage/emulated/0/Android/data/cn.com.bookan dir.
  2. make sure you have downloaded the book you want to read (the version of which must be Original Preview).
  3. copy /storage/emulated/0/Android/data/cn.com.bookan/files/bookan/magazine to your PC.

If you can run python on your android device and you can install packages with pip, you can ignore this step.

  1. install the required dependency with the file requirements.txt.
  2. copy bookan.py to the magazine folder and run the file.
@PassionPenguin
PassionPenguin / texsvg.lua
Created February 19, 2022 07:25
pandoc filter to convert markdown latex into html svg with latex and dvisvgm
local default_template = [[
\documentclass[12pt,preview]{standalone}
{{ preamble }}
\begin{document}
\begin{preview}
{{ code }}
\end{preview}
\end{document}
]]
@PassionPenguin
PassionPenguin / enable_flash.bat
Last active February 19, 2022 07:30
Enable Flash
REM Enable Flash in Chrome via Reg.
@echo off
echo Windows Registry Editor Version 5.00 > com.google.Chrome.reg
echo.>>com.google.Chrome.reg
echo [HKEY_CURRENT_USER\Software\Policies\Google\Chrome\PluginsAllowedForUrls]>>com.google.Chrome.reg
echo "1"="https://*">>com.google.Chrome.reg
echo "2"="http://*" >> com.google.Chrome.reg
REGEDIT com.google.Chrome.reg
del /f /s /q com.google.Chrome.reg
@@||ditiezu.com/forum.php
@@||ditiezu.com/misc.php?mod=swfupload
@@||ditiezu.com/home.php
<!doctype html>
<html lang="cn">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SuccessNFail</title>
<style>
svg {