Skip to content

Instantly share code, notes, and snippets.

View Thrimbda's full-sized avatar
:octocat:
turn to the light side in the dark

Siyuan Wang Thrimbda

:octocat:
turn to the light side in the dark
View GitHub Profile
from __future__ import annotations
from typing import List, Iterable, Callable
class Wheel:
"""
it takes a wheel to build a car.
"""
brand: str
@Thrimbda
Thrimbda / cloudSettings
Last active September 2, 2021 12:30
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-02T12:30:48.348Z","extensionVersion":"v3.4.3"}
@Thrimbda
Thrimbda / C_OO.c
Created January 28, 2018 15:04
OOP in C
#include <stdio.h>
#include <stdlib.h>
typedef struct Class{
int a;
int (*generator)(struct Class *this);
}Class;
int func(struct Class *this){
@Thrimbda
Thrimbda / PredictingParsingTable.py
Created October 15, 2017 19:03
predicting parsing table example
"""
module for generate predicting parsing table.
"""
from collections import defaultdict
from typing import List, Dict, Set, Tuple
import copy
import json
class ParsingTableGenerator(object):
@Thrimbda
Thrimbda / NFAGenerate.py
Created October 15, 2017 19:01
Generate NFA(Untestded)
"""This is a module for generate NFA.
"""
# -*- coding: utf-8 -*-
# @Author: Macsnow
# @Date: 2017-04-15 12:25:32
# @Last Modified by: Macsnow
# @Last Modified time: 2017-04-15 17:02:03
class State(object):
@Thrimbda
Thrimbda / golang_OOP.go
Created August 16, 2017 03:44
this is a gist of golang's OOP.
// this is a gist of golang's OOP.
package main
import "fmt"
const (
Male = iota
Female
)
@Thrimbda
Thrimbda / how-clowwindy-design-Shadowsocks.md
Created July 23, 2017 12:41
clowwindy设计Shadowsocks的思路分析以及设计理念

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

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

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

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