Skip to content

Instantly share code, notes, and snippets.

View OverflowCat's full-sized avatar
💭
I may be slow to respond.

ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ 猫 OverflowCat

💭
I may be slow to respond.
View GitHub Profile
@OverflowCat
OverflowCat / RFC.md
Last active February 20, 2025 10:15
Vertical Writing Mode Support

Introduction

Vertical layout remains vital across various cultures and contexts, particularly in traditional East Asian typesetting. This RFC proposes the implementation of vertical writing mode support in Typst.

Features to implement

Vertical writing

@OverflowCat
OverflowCat / simpread_plugin_snipped.js
Last active November 7, 2021 09:43
简悦知乎插件 LaTeX 公式 SVG Base64 转 PNG Base64
/*
简悦插件 snippet 使用方法
参见 http://ksria.com/simpread/docs/#/插件编写?id=如何测试
Chrome 控制台的 Source(来源)中的 Snippets(代码段)
点击 New snippt 新建一个空的 Snippet
粘贴(Ctrl + V)到空的 Snippet
然后按照 https://i.loli.net/2018/09/03/5b8ceca5a6ef2.png 切换命名空间并执行
需要开启简悦知乎增强插件的公式转 SVG Base64
在简悦进度条显示图片转换完成后 Z S 触发
@OverflowCat
OverflowCat / Manchurify.POWERPOINT.yaml
Last active February 19, 2021 09:47
Manchurize selected text in Office with Script Lab
name: Manchurify
description: ''
host: POWERPOINT
api_set: {}
script:
content: |-
/** Default helper for invoking an action and handling errors. */
async function tryCatch(callback) {
try {
await callback();
@OverflowCat
OverflowCat / tbwl_dev.js
Last active August 16, 2020 14:15
TBWL Preview
// ==UserScript==
// @name Twitter Block With Love
// @namespace https://www.eolstudy.com
// @version 2.3.3
// @description Block all users who love a certain tweet
// @author Eol, OverflowCat
// @run-at document-end
// @grant GM_registerMenuCommand
// @match https://twitter.com/*
// @match https://mobile.twitter.com/*
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def fetchUser(user="realDonaldTrump"):
tweets = tweepy.Cursor(api.user_timeline, screen_name=user, tweet_mode="extended").items(80)
output = []
for t in tweets:
htm = []
twurl = "https://twitter.com/" + t.user.screen_name + "/status/" + t.id_str
htm.append('<h4># <a href="' + twurl + '">' + t.id_str + "</h4>")
# 判断是否是 reply
replyattr = getattr(t, 'in_reply_to_screen_name', None)
if replyattr is not None:
// ==UserScript==
// @name Twitter Block With Love
// @namespace https://www.eolstudy.com
// @version 1.1
// @description Block all users who love a certain tweet
// @author Eol
// @run-at document-end
// @match https://twitter.com/*
// @require https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js
// @require https://cdn.jsdelivr.net/npm/qs/dist/qs.min.js