Skip to content

Instantly share code, notes, and snippets.

jackielii / luna_pinyin.custom.yaml
Created Jun 4, 2020
rime use v for english input
View luna_pinyin.custom.yaml
"recognizer/patterns/veng": "^v.*$"
"engine/segmentors/@before last": affix_segmentor@veng
tag: veng
prefix: "v"
tips: "英语输入"
curl -X PUT "localhost:9200/datenano?pretty" -H 'Content-Type: application/json' -d'
"mappings": {
"dynamic" : "strict",
"properties" : {
"datefield" : {
"type": "date_nanos",
"format": "strict_date_hour_minute_second_millis"
jackielii / tmux.conf
Created Mar 13, 2019 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
View tmux.conf
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
jackielii / .bashrc
Created Apr 9, 2018 — forked from mathiasverraes/.bashrc
Git shortcuts
View .bashrc
#! /bin/sh
alias gs="git status"
alias gc="git commit"
alias gr="git checkout"
alias ga="git add"
alias gl="git lola"
jackielii / .block
Last active Feb 20, 2020 — forked from mbostock/.block
Contour Plot
View .block
license: apache2.0
height: 673
border: no
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
View appbar-without-fixed-positioning.html
<!doctype html>
<html lang="en">
<style type="text/css">
.app {
display: flex;
flex-direction: column;
height: 100vh;
/* the height can be anything: e.g. 100% of parent */
View index.html
<div id="page"></div>
View enum.go
package main
import "fmt"
type day int
const (
Sunday day = iota
View enum.go
package main
import (
type foo int
const (
One foo = iota