Skip to content

Instantly share code, notes, and snippets.

View staticor's full-sized avatar

SteveYagn staticor

View GitHub Profile
@staticor
staticor / active.md
Created December 12, 2018 10:42 — forked from lotem/active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sat, 22 Dec 2012 23:34:58 GMT till Sun, 22 Dec 2013 23:34:58 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -> user.followers > 229)
@staticor
staticor / findhao_rss_sources.xml
Created December 5, 2018 09:30 — forked from FindHao/findhao_rss_sources.xml
我的rss订阅源
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<opml version="1.0">
<head>
<title>
Subscriptions of find from Inoreader [https://www.inoreader.com]
</title>
</head>
<body>
<outline text="Blogs" title="Blogs">
<outline text="cgnail's weblog" title="cgnail's weblog" type="rss" xmlUrl="http://cgnail.github.io/atom.xml" htmlUrl="http://cgnail.github.io/"/>
@staticor
staticor / luna_pinyin.custom.yaml
Created February 8, 2018 10:03 — forked from lotem/luna_pinyin.custom.yaml
在 Rime 中加入"["和"]"翻页按键绑定(以【明月拼音】为例)
# luna_pinyin.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
"key_binder/bindings":
- { when: paging, accept: bracketleft, send: Page_Up }
- { when: has_menu, accept: bracketright, send: Page_Down }
@staticor
staticor / wubi_pinyin.emoji.dict.yaml
Created February 8, 2018 09:03 — forked from lucifr/wubi_pinyin.emoji.dict.yaml
Wubi Pinyin Extended Dictionary(emoji) for Rime
# Rime dictionary
# encoding: utf-8
#
# Wubi Pinyin Extended Dictionary(emoji) - 五笔拼音擴充詞庫(表情)
#
# by @lucifr
# based on https://gist.github.com/lembacon/4593540 & http://www.jianshu.com/p/ef2d9442fb0c
#
# 部署位置:
# ~/.config/ibus/rime (Linux)
@staticor
staticor / tmux-cheatsheet.markdown
Created July 22, 2017 03:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@staticor
staticor / bankcard_check.js
Created June 30, 2017 02:27 — forked from zhangw/bankcard_check.js
银行卡号Luhm校验算法
//Description: 银行卡号Luhm校验算法
//Luhm校验规则:16位银行卡号(19位通用):
// 1.将未带校验位的 15(或18)位卡号从右依次编号 1 到 15(18),位于奇数位号上的数字乘以 2。
// 2.将奇位乘积的个十位全部相加,再加上所有偶数位上的数字。
// 3.将加法和加上校验位能被 10 整除。
  //bankno位银行卡号
function luhmCheck(bankno){
@staticor
staticor / 词性标记.md
Created April 1, 2017 09:50 — forked from luw2007/词性标记.md
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

@staticor
staticor / punctuation.js
Created February 23, 2017 14:51 — forked from CarlLee/punctuation.js
Match punctuation in English/Chinese sentenses
var re = /([\[\]\,.?"\(\)+_*\/\\&\$#^@!%~`<>:;\{\}?,。·!¥……()+{}【】、|《》]|(?!\s)'\s+|\s+'(?!\s))/ig;
content.replace(re, '');
@staticor
staticor / tmux常用命令
Last active November 11, 2016 04:00 — forked from xionglikarl/tmux常用命令
tmux常用命令
#  自己习惯用 C-x 作为prefix
## 系统操作(session)
s list all sessions
$ rename
## 窗口操作
c create
, rename
<Num>  switch
&  close
@staticor
staticor / basecommand_emacs
Last active August 13, 2017 11:58 — forked from shijinkui/basecommand_emacs
Emacs常用基本快捷键
/************************************/
基本命令
C-x C-f 打开/新建文件 C-x C-s 保存当前缓冲区
C-x C-w 当前缓冲区另存为
C-x i 光标处插入文件
C-x b 切换Buffer C-x C-b 显示Buffer列表
C-x k 关闭当前Buffer C-x C-c 关闭Emacs