This file contains hidden or 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
| var cv = document.getElementById("myCanvas"); | |
| var ctx = cv.getContext("2d"); | |
| function gradient(a, b) { | |
| return (b.y-a.y)/(b.x-a.x); | |
| } | |
| function bzCurve(points, f, t) { | |
| //f = 0, will be straight line | |
| //t suppose to be 1, but changing the value can control the smoothness too |
This file contains hidden or 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
| FUSE = '0.9'.to_d | |
| def estimate_required_funds(price_levels) | |
| required_funds = Account::ZERO | |
| expected_volume = volume | |
| start_from, _ = price_levels.first | |
| filled_at = start_from | |
| until expected_volume.zero? || price_levels.empty? | |
| level_price, level_volume = price_levels.shift |
This file contains hidden or 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
| addEventListener( | |
| "fetch", event => { | |
| let url = new URL(event.request.url); | |
| url.hostname = "your.domain.com"; | |
| url.protocol = "https"; | |
| let request = new Request(url, event.request); | |
| event.respondWith( | |
| fetch(request) | |
| ) | |
| } |
This file contains hidden or 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
| { | |
| "hosts": { | |
| "dns.google": "8.8.8.8", | |
| "dns.pub": "119.29.29.29", | |
| "dns.alidns.com": "223.5.5.5", | |
| "geosite:category-ads-all": "127.0.0.1" | |
| }, | |
| "servers": [ | |
| { | |
| "address": "https://1.1.1.1/dns-query", |
This file contains hidden or 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://stackoverflow.com/questions/2541481/get-average-color-of-image-via-javascript | |
| var rgb = getAverageRGB(document.getElementById("i")); | |
| document.body.style.backgroundColor = | |
| "rgb(" + rgb.r + "," + rgb.g + "," + rgb.b + ")"; | |
| function getAverageRGB(imgEl) { | |
| var blockSize = 5, // only visit every 5 pixels | |
| defaultRGB = { r: 0, g: 0, b: 0 }, // for non-supporting envs | |
| canvas = document.createElement("canvas"), | |
| context = canvas.getContext && canvas.getContext("2d"), |
This file contains hidden or 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
| `dy3BgaqEQkTFfgqLknHc1gQk0iwvkTIbQmJL0ogLAivfzjJsMssvJPcvRjsAojLApvQyqPQYIIQktQcLrTizvrvHzLeywuidRQQFKcTlOk04skADPuZRI2xuL04HQOogQmmHyzuPFrupJs50dPPbP85bDnvfxEKTHKWMhW3uvQ6dd14Ok1lgOQZbjM8QQ1HQQA0rQEhsjxjjLzcvb)jjI7rPkpvLPsf7fCHOkXBwvYarc6GijzHOOhQi1erc5evfSrbk3ifmsKiDsQIALir5Luv8LOQOBIQYoj4ojHAOIIdTiSuLWLss0Nsvvo1IOTIKu3kQs1VsIQZTQu5zrvK3QO8VOQ0Dvu9UOY9skmyv5Wiwmsfpgktwj6Ys2msL(mkz0qvvNMsEvuLYRrvMnHCBKuTBP8BPA4e54cKLdXZvQPt66IQTtPQ(UQsXVRGDvvYah4acCWfUM9pB2jVy0feCbh4O0sKKiRgp4WFvL28VS83uw0PJhX6uxgpBr6IinwKoPt6W5qevnDd304bQ6oppnCuvUI)De4s(zmm4nHJpslNiYZnTqSF1uREdychLwIKGlXa1(zZ2G5AioXrnoLyWC9ZpB2bOnfenE93e1q6NkCn7F2Stm4hDV8BWCnzmuJgZqYV4umodMRH2rCk2Jj)ItX4myUgGYZc9VITfYFzH(euzYVydMRjV4xOhM83e1OOYyifB3FAI7Nn7WV8ka)IdqpUumodMRH4eh14uscVGNIIpX7)0i7KNmnyUMyGA)SzNmTBa6XR)0i7KNmhuw6l8laTPGOXRjgXh)MOgs)uH2rCk2Jj)ItX4szTMmgQrJzi5xCkgNbZ1Kx8l0dtgG(V7NMSrh)WBPGBQatnrYKrdMR)0Kb0X3VqFI1a0JlfJBqzzO6mb(wJNOn7Ftu)Pb(gs)ujJHA0ygs(fNIXzWCn0oItXEm5xCkgNbZ1O0ogDgMi5xCkgNbZ1auEwO)vSTq(ll0NGkt(fBWCn5f)c9WKrrLXqk2U)0e3pB2bOhxkghCu |
This file contains hidden or 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
| `b4vmErLxofJxtD(Icw(H76LtY4fvEnfvHXwzUr3CEn1qmf0utL0qEnvq1rhAVjNxtHoKOwEHlwUIGcu5qMy5fMR50Uz5fUOxtD0ufzvzYnxAV5MxtjJl14smW41unfMB1fgBj5gDLjNDL5gDP9MBEjKxtruzMfwDSrNxofJxtjvzHr2tUXwEEjMxtnfCLnwse5LtXeJxt1uyJj3BwvMCZL2BUnNxu5LtX4fvE5umEn1lJf2C0nxzXvxzUnwz(b2wM9MCTPtmVmtx(bMCLnxz01Jn(bMFGfZnZKJmE5KmEn1lJf2C05hyB52BM9MCT1LFGLtoWCJxonJxt9YyHnhD(b2wM9MCTPtmD5hy5GdoX4Lt041uVmwyZr3CLfxDL52yL5hyBz2BY1MoX0LFGjxzZvgD9ydm(bMFGvJmYKJxtTuz5jvzSvwyZvMxu5fDEn1u0vgCgvNBJrxAV5MxtbLCP9MCPrxEEn1sLLhuYv2CZ5fvE5umEn1iZH2B3r3BVXgDPb3CE5KmEn1lZrxyYrxy0rxyJTMx051uqjxznf2yY9Mxu5LtX41uVmwyUnwzSfwDYfMFGvoV6AELiA(IVAELrEEPDEUPp6LtY41uVmwyUnwzSfwDYfMFGz(IVAELrEEPDEUPp6LtZ41uVmwyUnwzSfwDYfMFGr(VDAUIKEEPDEUPp6fDEnfuVnhDnf2yY9Mxu5fDErNx051uf5MzVj3yLn0BTbxy0fMyPXwA0LNxI5fDErNxEb`<br/><strong>狂击</strong> | |
| <em>Talents</em> CLASSIC<br/><br/>This macro contains 1 macro version. 该序列导出自GSE 2.5.10. | |
| <strong>Macro Version 1</strong> | |
| <blockquote><strong>Step Function: </strong>Priority | |
| <strong>Pre Macro: </strong> | |
| <strong>KeyPress: </strong> Contains |
This file contains hidden or 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
| img{ | |
| min-width: 100%; | |
| height: auto; | |
| } | |
| .content{ | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| bottom: 0; |
This file contains hidden or 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
| var run = async function () { | |
| var bitcore = require('bitcore'); | |
| var RpcClient = require('bitcoind-rpc'); | |
| var config = { | |
| protocol: 'http', | |
| user: 'bitcoin', | |
| pass: 'local321', | |
| host: '127.0.0.1', | |
| port: '18332', |
This file contains hidden or 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 numpy | |
| import pandas as pd | |
| import math as m | |
| #Moving Average |