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
| hanxue-mac:Github hanxue$ git clone https://github.com/AppScale/appscale.wiki.git | |
| Cloning into 'appscale.wiki'... | |
| remote: Counting objects: 1745, done. | |
| remote: Compressing objects: 100% (1733/1733), done. | |
| remote: Total 1745 (delta 1089), reused 10 (delta 4) | |
| Receiving objects: 100% (1745/1745), 267.93 KiB | 35.00 KiB/s, done. | |
| Resolving deltas: 100% (1089/1089), done. | |
| Checking connectivity... done | |
| hanxue-mac:Github hanxue$ ls appscale.wiki/ | |
| .git/ |
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 yfinance as yf | |
| import pandas as pd | |
| # de-annualize yearly interest rates | |
| def deannualize(annual_rate, periods=365): | |
| return (1 + annual_rate) ** (1/periods) - 1 | |
| def get_risk_free_rate(): | |
| # download 3-month us treasury bills rates | |
| annualized = yf.download("^IRX")["Adj Close"] |
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
| # mycode.py | |
| import tradologics | |
| def tradehook(payload): | |
| payload = tradologics.parse(payload) | |
| # is this a "data" payload? | |
| if payload.event == "data": | |
| for asset in payload.data: |
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
| <?php | |
| /** | |
| * Multi-Server MySQLi class | |
| * https://gist.github.com/ranaroussi/64a26c9a2ec6d69c62ba7c650f49a8a0 | |
| * | |
| * Copyright 2013-2020 Ran Aroussi | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import matplotlib as _mpl | |
| import matplotlib.pyplot as _plt | |
| from mpl_toolkits.mplot3d import Axes3D as _Axes3D | |
| import numpy as _np | |
| import pandas as _pd | |
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 requests | |
| def get_premarket(ticker): | |
| """ | |
| gets premarket prices from nasdaq | |
| usage: | |
| >> price, volume = get_premarket('spy') | |
| """ |
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 pandas as pd | |
| def resample(data, resolution="1T", tz=None, ffill=True, dropna=False): | |
| """ | |
| >>> resample(df, '500K') # resample 500 ticks (by counting trades) | |
| >>> resample(df, '500V') # resample ~500 volume (by counting volume) | |
| """ | |
| def __finalize(data, tz=None): | |
| # figure out timezone |
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
| #!/usr/bin/env python | |
| import subprocess | |
| import time | |
| import sys | |
| import logging | |
| class Job: | |
| """ | |
| monitors that a job is running and executing it when it's not |
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
| #!/usr/bin/env python | |
| from dateutil.parser import parse as parse_date | |
| import datetime | |
| import requests | |
| import pandas as pd | |
| def get_contracts(url): | |
| html = requests.get(url, timeout=5) |
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
| {"version":1,"resource":"file:///Users/ran/Projects/1biglink/webapp/tiny/helpers/caddy.php","entries":[{"id":"ShwK.php","timestamp":1725140672743},{"id":"JfVF.php","timestamp":1725140789314},{"id":"E7vY.php","timestamp":1725141456570},{"id":"OzKx.php","timestamp":1725141481935},{"id":"Vhq5.php","timestamp":1725141602292},{"id":"9b58.php","timestamp":1725141782904},{"id":"n04L.php","timestamp":1725142105350},{"id":"wMSl.php","timestamp":1725142122247},{"id":"36SX.php","timestamp":1725142164400},{"id":"OarW.php","source":"searchReplace.source","timestamp":1725983939895},{"id":"FTgC.php","source":"searchReplace.source","timestamp":1726226877085},{"id":"CLxi.php","source":"searchReplace.source","timestamp":1726231996455},{"id":"OLNF.php","source":"searchReplace.source","timestamp":1726233059615},{"id":"YjvR.php","source":"searchReplace.source","timestamp":1726235003715},{"id":"Dx6Y.php","timestamp":1727534882744},{"id":"hFre.php","timestamp":1728037648917},{"id":"xS5R.php","timestamp":1728037662902},{"id":"G1ti.p |