Skip to content

Instantly share code, notes, and snippets.

View Justin-lu's full-sized avatar
🎯
Focusing

Justin-lu Justin-lu

🎯
Focusing
View GitHub Profile
@Justin-lu
Justin-lu / React Redux Best practices.md
Created July 25, 2016 08:28
React Redux ~~最佳~~实践

React Redux 最佳实践

本来这次分享题目是React + Redux 最佳实践 的,但是考虑到前端一天一个框架的更新节奏,最后我还是把最佳去掉,简单分享一下自己使用react+rredux的经验,我将从一下几个方面进行分享

  • Redux 项目相关工具
  • Redux相关概念
  • React + Redux + Webpack 的构建流程
  • 如何更方便的Mock数据
  • 如何写测试
  • 其他一些Tips
    • 如何使用context和refs
@Justin-lu
Justin-lu / eslint-pre-commit.md
Last active July 19, 2016 10:44
pre commit run eslint hook
  • copy pre-commit.sample
cp .git/hooks/pre-commit.sample  .git/hooks/pre-commit
  • paste this to pre-commit
#!/bin/sh
# Fixes merge requests prior to gitlabhq 5.1
# without losing the commits for closed merge requests
# (as the official migration script does).
# run this in Rails console
failed = []
MergeRequest.all.each do |mr|
begin
/*
_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/`---'\____
.' \\| |// `.
/ \\||| : |||// \
/ _||||| -:- |||||- \
@Justin-lu
Justin-lu / gist:447eccfe62fb3032c52b
Last active August 29, 2015 14:05
Assignee User case

Assignee User case

On the top of the Working view, there should be a message explaining to user that they were assigned as task: "Hi Ming, you were assigned this task by Rain at <company name>. You can update progress on this page."

  1. Justin was assigned to recurrence1(by Rain)
  2. Justin was assigned to Step1(by Rain) and Step2(by Leif)
  3. Justin was assigned to recurrence 1 and Step1(by Rain) and Step2(by Leif)