注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| from sqlalchemy.engine import create_engine | |
| from sqlalchemy.orm import sessionmaker | |
| def create_engine_from_django_settings(database='default'): | |
| from django.conf import settings | |
| db = settings.DATABASES[database] | |
| engine = db['ENGINE'].lower() | |
| if 'postgresql' in engine: | |
| sqlalchemy_engine = 'postgresql' |