Skip to content

Instantly share code, notes, and snippets.

Nobody kingcc

Block or report user

Report or block kingcc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux.config
bind h split-window -h
# 开启鼠标模式
set-option -g mouse on
set-option -g default-command "reattach-to-user-namespace -l zsh"
bind b source-file ~/
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
View gist:5bc0fb4dcf972aaadc7a0a2912496a57
function mergePeriods(periods) {
const canPeriodMerge = (a, b) => (a.end >= b.start && a.start <= b.end) || (b.end >= a.start && b.start <= a.end);
const mergePeriod = (a, b) => ({
start: Math.min(a.start, b.start, a.end, b.end),
end: Math.max(a.start, b.start, a.end, b.end),
let lastLength = periods.length + 1;
let dynamicPeriods = periods;
while (dynamicPeriods.length !== lastLength) {
lastLength = dynamicPeriods.length;
kingcc / readMutiLines
Last active Mar 23, 2017
nodeJS read muti-lines datas from console.
View readMutiLines
* nodeJS read muti-lines datas from console.
* @Author kingcc
* @DateTime 2017-03-23T13:29:22+0800
* @param {Function} cb callback
* @return {[type]} callback results
function readMutiLines(cb) {
let datas = [];
kingcc / vimium-remap.cfg
Created Mar 7, 2017
Vimium Custom Key Mappings
View vimium-remap.cfg
# Insert your preferred key mappings here.
map w scrollUp
map s scrollDown
map a scrollLeft
map d scrollRight
map q moveTabLeft
map e moveTabRight
map W scrollToTop
map S scrollToBottom
View gulpfile.js
var gulp = require('gulp');
var wiredep = require('wiredep');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var $ = require('gulp-load-plugins')();
var config = {

sassPath: './resources/sass',

bowerDir: './bower_components'
You can’t perform that action at this time.