Skip to content

Instantly share code, notes, and snippets.

View littleblacklb's full-sized avatar
🏠
Working from home

littleblack LB littleblacklb

🏠
Working from home
View GitHub Profile
@littleblacklb
littleblacklb / zh_tw2cn.py
Created February 25, 2024 07:23
asynchrionization opencc zh-TW to zh-CN converter
import asyncio
import time
import opencc
loop = asyncio.get_event_loop()
cc = opencc.OpenCC("t2s")
def timer(func):
@littleblacklb
littleblacklb / RUNME.sh
Last active November 3, 2023 12:09
A shell script to elevate the framework user permission to root on jailbroken Kindle
#!/bin/sh
# A shell script to elevate the framework user permission to root on jailbroken Kindle
# So the "cannot open framebuffer" exceptions might be gotten fixed. (For example on KOReader)
# Usage:
# 1. Use USB to plug your Kindle device to computer
# 2. Copy this file to kindle root directory
# 3. Enter ;log runme on search bar and wait for rebooting if no error happens
@littleblacklb
littleblacklb / BiliLogin.py
Last active November 6, 2022 07:03
B站密码登录方式获取Cookie实例
"""
FilePath : /src/BiliLogin.py
Author : littleblackLB
Date : 2022-07-19 22:50:47
LastEditTime : 2022-11-06 14:54:55
"""
"""
Bili Account Login
Reference: https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/login/login_action/password.md
"""
@littleblacklb
littleblacklb / Cpp.md
Last active August 13, 2021 13:54
Cpp常用函数&基本知识点

C++ 常用函数&基本知识点

《信息学奥赛》上所做的笔记,不完整,没写完,~~就是不想写太费劲了,这点破东西就写了七八个小时。~~主要当复习或者当手册或者缓冲下,如果笔记有啥问题或者需求可以随时找我:)

更新地址(当然我知道是几乎不可能有人会看我这东西的**:(** ): https://gist.github.com/LittleBlacklb/824989964309e7f07adfe1de4a29b11c

char

Input

@littleblacklb
littleblacklb / main.cpp
Created August 1, 2021 04:02
&& and & in if condition test
#include <iostream>
using namespace std;
bool b = false;
bool modifyB2True() {
b = true;
return true;
}