Skip to content

Instantly share code, notes, and snippets.

View six-ddc's full-sized avatar
🎯
Focusing

ddc six-ddc

🎯
Focusing
View GitHub Profile
@six-ddc
six-ddc / .ctags
Last active January 26, 2016 15:20
ctags config file, support lua, protobuf, thrift and objective-c
--langdef=MYLUA
--langmap=MYLUA:.lua
--regex-MYLUA=/^local[ \t]+([a-zA-Z0-9_]+)[ \t]*=[ \t]*\{/\1/v,var/
--regex-MYLUA=/[ \t]*([a-zA-Z0-9_]+)[ \t]*=[ \t]*function[ \t]*\(/\1/f,function/
--regex-MYLUA=/function[ \t]+([a-zA-Z0-9_]+)[\.:]([a-zA-Z0-9_]+)[ \t]*\(/\2/f,function/
--langdef=PROTO
--langmap=PROTO:.proto
--regex-PROTO=/^[ \t]*message[ \t]+([a-zA-Z0-9_\.]+)/\1/m,message/
--regex-PROTO=/^[ \t]*(required|repeated|optional)[ \t]+[a-zA-Z0-9_\.]+[ \t]+([a-zA-Z0-9_]+)[ \t]*=/\2/f,field/
@six-ddc
six-ddc / tmux.md
Created December 27, 2016 06:38 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@six-ddc
six-ddc / gandi-ext.py
Last active January 9, 2023 07:09
python test for Gandi
import json
# from pyodide import code
# print('js', dir(js))
v = 0;
def calc(a):
global v
v += 1
return json.dumps({'a': a + v, 'b': True})