Skip to content

Instantly share code, notes, and snippets.

@jackielii
jackielii / luna_pinyin.custom.yaml
Created Jun 4, 2020
rime use v for english input
View luna_pinyin.custom.yaml
patch:
"recognizer/patterns/veng": "^v.*$"
"engine/segmentors/@before last": affix_segmentor@veng
veng:
tag: veng
prefix: "v"
tips: "英语输入"
View test-es.sh
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
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
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
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:

tmux

start new with session name:

tmux new -s myname
View appbar-without-fixed-positioning.html
<!doctype html>
<html lang="en">
<head>
<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
Monday
Tuesday
Wednesday
View enum.go
package main
import (
"fmt"
"strings"
)
type foo int
const (
One foo = iota