Skip to content

Instantly share code, notes, and snippets.

View lookis's full-sized avatar

Jingsi lookis

  • 快手
  • BeiJing
  • 17:42 (UTC +08:00)
View GitHub Profile
gotmp () {
cd `mktemp -d`
}
import pandas as pd
import numpy as np
import talib
import tushare as ts
import datetime
def timing(df):
r = []
for index, row in df.iterrows():
if(index != len(df.index) - 1 and (row['low'] < df.iloc[[index + 1]]['low']).tolist()[0] and (row['high'] > df.iloc[[index + 1]]['high']).tolist()[0]):
@lookis
lookis / gist:77bf0ee3ba762b1bfbd4
Last active February 21, 2021 10:13
代码管理与规范

代码工作流程

1.先把要修改的工程fork到自己的github账号上.

2.在具体解决某个issue之前,先在自己的工程里创建一个分支,分支名字建议和issue的id相关以方便自己维护

3.在这个分支上具体解决该issue, 自己做好review之后提交一个pull-request

4.在pull-request被merge之前,如果需要解决一个新的issue,就再建立新的branch来工作,如果临时需要修改之前的那个提交,记得切换回刚才的branch

@lookis
lookis / gist:81136a37ba0c8bed37f5
Created September 4, 2014 09:00
Mysql Create User
CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'mypass';
GRANT ALL ON db1.* TO 'jeffrey'@'localhost';
flush privileges;

Keybase proof

I hereby claim:

  • I am lookis on github.
  • I am lookis (https://keybase.io/lookis) on keybase.
  • I have a public key whose fingerprint is AAA0 29AF 6ACE 5604 8917 D0DA 6038 D951 DE43 0E91

To claim this, I am signing this object: