Skip to content

Instantly share code, notes, and snippets.

View xianmin's full-sized avatar
❄️
im cold

Chen Xianmin xianmin

❄️
im cold
View GitHub Profile
@xianmin
xianmin / eBookViewer-Theme.css
Created January 30, 2023 02:42 — forked from GokhanPolat/eBookViewer-Theme.css
eBook viewer theme for best readability on Calibre.
body {
/* background: #FFFAFD; */
background-color: rgb(245, 245, 245) !important;
font-size: 100% !important;
line-height: 1.5 !important;
font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
margin: 35px !important;
}
header {
@xianmin
xianmin / workbench.colorCustomizations.json
Created December 5, 2022 10:42 — forked from dcts/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@xianmin
xianmin / org-mode-reference-in.org
Created September 29, 2020 06:26 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!
@xianmin
xianmin / md-link.js
Created October 23, 2017 05:15 — forked from Rarst/md-link.js
Bookmarklet for markdown link of current page
@xianmin
xianmin / how-clowwindy-design-Shadowsocks.md
Created July 20, 2017 06:10
clowwindy设计Shadowsocks的思路分析以及设计理念

clowwindy设计Shadowsocks的思路分析以及设计理念

鄙人不才,尝试站在原作者clowwindy的角度,来分析一下原版协议的设计思路和理念。 没参与过最初开发,不过设计了AEAD这个协议。读了一些资料,评论。

7:58 PM, 31 Aug 2015 作者发了这么一段话,我很好奇其中的指代内容,遂有本文。

眼睁睁看着一群人把一个东西搞错然后朝着错误的方向走了。不过懒得管了 =。=

# -*- coding: utf-8 -*-
import json
from decimal import Decimal
class MyEncoder(json.JSONEncoder):
def default(self, obj):
data = {'__class__': obj.__class__.__name__,