Skip to content

Instantly share code, notes, and snippets.

View lisabug's full-sized avatar
😇
Focusing

Yuanqin Lu lisabug

😇
Focusing
View GitHub Profile
"""想要继承JsonMixin类,类需要包含名为to_dict的方法;__init__方法需要接受关键字参数"""
import json
class JsonMixin(object):
@classmethod
def from_json(cls, data):
kwargs = json.loads(data)
return cls(**kwargs)
def to_json(self):
@lisabug
lisabug / .tmux.conf
Created December 30, 2016 10:28
tmux conf
bind R source-file ~/.tmux.conf ; display-message "Config reloaded.."
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# 状态栏
# 颜色
set -g status-bg black
set -g status-fg white
@lisabug
lisabug / INSTALL.md
Created March 4, 2019 11:00 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation

Ubuntu 16.04 Developer Tools Installation

First things first !

sudo apt update
sudo apt upgrade

Standard Developer Tools

sudo apt-get install build-essential git