Skip to content

Instantly share code, notes, and snippets.

View yesmeck's full-sized avatar
:octocat:
<img src="x" onerror="alert(1)" />

Wei Zhu yesmeck

:octocat:
<img src="x" onerror="alert(1)" />
View GitHub Profile
@yesmeck
yesmeck / git-flow.md
Created December 9, 2012 14:53
Git 开发流程

Git 协作流程

master 分支

master 永远处于稳定状态,这个分支代码可以随时用来部署。不允许在该分支直接提交代码。

develop 分支

开发分支,包含了项目最新的功能和代码,所有开发都在 develop 上进行。一般情况下小的修改直接在这个分支上提交代码。

@yesmeck
yesmeck / toolbar.js
Created January 4, 2021 05:49
Kitchen toolbar
const agentView = NSStackView.alloc().init();
const container = NSView.alloc().initWithFrame(NSMakeRect(0, 0, UI.TOOLBAR_DEFAULT_WIDTH, 400));
container.identifier = pluginConstant.BAR_CONTAINER;
container.addSubview(agentView);
const viewsDictionary = { container, stack: agentView };
const horizontalConstraints = NSLayoutConstraint.constraintsWithVisualFormat_options_metrics_views(
'H:|-0-[stack]-0-|',
0,
nil,
@yesmeck
yesmeck / unicorn.rb
Created December 18, 2014 05:59
unicorn zero downtime config
# Sample verbose configuration file for Unicorn (not Rack)
#
# This configuration file documents many features of Unicorn
# that may not be needed for some applications. See
# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb
# for a much simpler configuration file.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
JavaScript 9 hrs 11 mins ███████▉░░░░░░░░░░░░░ 38.0%
TypeScript 8 hrs 29 mins ███████▍░░░░░░░░░░░░░ 35.1%
JSON 2 hrs 41 mins ██▎░░░░░░░░░░░░░░░░░░ 11.2%
Other 1 hr 44 mins █▌░░░░░░░░░░░░░░░░░░░ 7.2%
Markdown 34 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.4%
@yesmeck
yesmeck / key.pub
Created April 7, 2020 10:06
My GPG Public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF6MTcYBEACk2Q+j0zJvzNYsxmkIMA5QzeFeHRxPRI/r1c9jjipJx/0O13JW
UItAQpAPYLcPTtq3lj0g6qjXrcHrnHsQ6rJDO92Fu124GVG47gxDY8FLQoY7Wgci
jZ9JwndFZIULpCLwDxqSFeAX12Zxx3a3SloBzfvLnYOKng/jqYfCMlfnW4T7Tbe3
p/6zwHMdHPdTbCnz9OUk4YilHT4wJB6+8bfIQ0l2P5xd0ghrbovtWehKVGNiAenL
ptypjFC1RvRInvHYhWlFo5TOBHb3HufWM+JM8Oy34gIiaAbCkoq+LHQCUYVmIqed
okqLnFmn0yxKAQ75WnkvvCcOSsmF4ZHrEJcbbTLjnGkNh+PZ5iMkMF9UG++okzSc
Bkqh59wzW1rzsCvguHZkwFExk7oFnuvKPECmUWpAi3unOlUMLY5NsnpxS9y7H4aN
qxeeHVutM0SOHTpfPMFcpSOXwZ1RyQ6cRnxaR+6uEvopARHpMnHkRdwdCVDm7n8t
@yesmeck
yesmeck / test.md
Created April 9, 2019 04:05
测试

这是一个测试

@yesmeck
yesmeck / core.sh
Last active December 26, 2018 14:30
Sunspot create solr core
# 假设新建一个叫 core1 的 core
mkdir -p /path/to/core1/data
cd /path/to/project
cp -r `bundle show sunspot_solr`/solr/solr/conf /path/to/core1
bundle exec rake sunspot:solr:start
@yesmeck
yesmeck / useStore.js
Last active November 26, 2018 11:00
useStore
interface State {
list: Trade[];
detail: Trade | null;
}
const initialState = {
list: [],
detail: null,
};
@yesmeck
yesmeck / result.md
Last active September 30, 2018 23:19
css in js lib stars
@yesmeck
yesmeck / cVimrc
Last active November 13, 2017 03:21
cVimrc
let barposition = "bottom"
map <C-f> scrollPageDown
map <C-d> scrollPageUp