Skip to content

Instantly share code, notes, and snippets.

View vinceyang15's full-sized avatar

Yang Xi vinceyang15

  • Shanghai, China
View GitHub Profile
@lindig
lindig / tokenizer.mll
Created September 9, 2015 16:45
Some Scanning Recipes for OCamlLex
{
(* short names for important modules *)
module L = Lexing
module B = Buffer
type token =
| STR of string
| INT of int
| ID of string
| PLUSEQ
@sebmarkbage
sebmarkbage / Enhance.js
Last active June 19, 2025 19:41
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: