This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "Default High Contrast", | |
"github.copilot.enable": { | |
"*": true, | |
"plaintext": true, | |
"markdown": true, | |
"scminput": false, | |
"yaml": false, | |
"ini": false | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from futu import * | |
############################ 全局变量设置 ############################ | |
FUTUOPEND_ADDRESS = '127.0.0.1' # Futu OpenD 监听地址 | |
FUTUOPEND_PORT = 11111 # Futu OpenD 监听端口 | |
TRADING_ENVIRONMENT = TrdEnv.SIMULATE # 交易环境:真实 / 模拟 | |
TRADING_MARKET = TrdMarket.HK # 交易市场权限,用于筛选对应交易市场权限的账户 | |
TRADING_PWD = '123456' # 交易密码,用于解锁交易 | |
TRADING_PERIOD = KLType.K_1M # 信号 K 线周期 |
- proposal:
- doesnt use gitlab pull mirror or github action to push
- approach 0: a script in a server periodically pulling the change from all github repo to local from github and pushing to gitlab.
- problems
- required the server to be always running, and it has to contains all the github repos in drive.
- problems
- approach 0: a script in a server periodically pulling the change from all github repo to local from github and pushing to gitlab.
- use gitlab pull mirror:
- approach 1: when you create a new repo in GitHub, the webhook is sent to a script that could create a GitLab repo, and then setup the mirror
- problems
- there is no API to configure the pull mirror in gitlab, so it couldn't be automated.
- problems
- approach 1: when you create a new repo in GitHub, the webhook is sent to a script that could create a GitLab repo, and then setup the mirror
- doesnt use gitlab pull mirror or github action to push
- [existing feature request]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
user(login:"AronWater") { | |
repositories(first:1,after:null) | |
{ | |
totalCount | |
totalDiskUsage | |
pageInfo { | |
endCursor | |
hasNextPage | |
hasPreviousPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY=""" | |
query { | |
user(login:"YOURUSERNAME_HERE") { | |
repositories(last:100) { ######### putting 100 here might generate timeout error | |
totalCount | |
totalDiskUsage | |
pageInfo { | |
endCursor | |
hasNextPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY=""" | |
query { | |
user(login:"AronWater") { | |
repositories(last:100) { ######### putting 100 here might generate timeout error | |
totalCount | |
totalDiskUsage | |
pageInfo { | |
endCursor | |
hasNextPage |
Based on this dribbble shot: https://dribbble.com/shots/2432743-Clash-Cards-Preview
A Pen by Andre Madarang on CodePen.
the problem is that the variable i, within each of the inside anonymous functions, is bound to the same variable outside of the function.
we could just do this
function createfunc(k) { return function(i) { return i+k; }; }
function createArrayOfFunctions(y){
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt,log,ceil | |
def fibo(n): | |
return int((((1+sqrt(5))**n)-((1-sqrt(5))**n))/((2**n)*sqrt(5))) | |
def nearestFibo(array): | |
for k in array: | |
larger_Nearest_Fibo = ceil( (log(sqrt(5)*k)) /(log((1+sqrt(5))/2)) ) | |
print(fibo(larger_Nearest_Fibo)) |
NewerOlder