Skip to content

Instantly share code, notes, and snippets.

@yi
yi / LICENSE.txt
Created February 27, 2014 17:59 — forked from jed/LICENSE.txt
Fucking crazy UUID
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@yi
yi / gist:9172832
Last active August 29, 2015 13:56
git aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global alias.df 'diff'
@yi
yi / coff-kue-redis-createClient
Last active December 27, 2015 02:19
coffeescript kue redis createClient with custom host and port
## 更新外部配置
p.version('0.0.1')
.option('-p, --port <n>', 'redis server port')
.option('-h, --host [VALUE]', 'redis server host')
.parse(process.argv)
p.port = parseInt(p.port) || 6379
p.host = p.host || "localhost"
kue = require 'kue'
@yi
yi / gist:1362270
Created November 13, 2011 16:13
VIM settings for JavaScript editing

VIM settings for JavaScript

VIM 用户环境

Windows

  • 配置文件: %HOMEPATH%/_vimrc
  • 插件目录: %HOMEPATH%/vimfiles/