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
# %% | |
import scipy as sp | |
from scipy.signal import argrelextrema | |
import numpy as np | |
import pandas as pd | |
import tushare as ts | |
from bokeh.io import output_notebook, show | |
from bokeh.plotting import figure | |
output_notebook() |
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
https://github.com/zhangzhixin00/Robot |
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
const J1970 = 2440588 | |
const J2000 = 2451545 | |
const deg2rad = Math.PI / 180 | |
const M0 = 357.5291 * deg2rad | |
const M1 = 0.98560028 * deg2rad | |
const J0 = 0.0009 | |
const J1 = 0.0053 | |
const J2 = -0.0069 | |
const C1 = 1.9148 * deg2rad | |
const C2 = 0.0200 * deg2rad |
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
module.exports = (le) => ((f) => f(f))((f) => le((x) => (f(f))(x))) |
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
"^(?:([A-Za-z]+):)?(\\/{0,3})([0-9.\\-A-Za-z]+)(?::(\\d+))?(?:\\/([^?#]*))?(?:\\?([^#]*))?(?:\\?([^#]*))?(?:#(.*))?$" |
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
'use strict' | |
import { | |
EventEmitter | |
} from 'events' | |
const keyRegExp = /\{(\w+)\}/g | |
const sep = '.' |
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
function gcd(a,b){ | |
return b>0?gcd(b,a%b):a; | |
} |
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
body{ | |
font-family: 'Helvetica Neue', "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体",Helvetica, Arial, Verdana, sans-serif; | |
} |
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
function plus(n,r){ | |
var result = r||0; | |
result+=n; | |
function add(n){ | |
return plus(n,result) | |
} | |
add.toString = function(){ | |
return result; | |
} | |
return add; |