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 | |
| #OHLC data | |
| r = requests.get('https://finnhub.io/api/v1/stock/candle?symbol=AAPL&resolution=1&from=1572651390&to=1572910590') | |
| print(r.json()) | |
| #Tick data | |
| r = requests.get('https://finnhub.io/api/v1/stock/tick?symbol=AAPL&date=2020-03-25') | |
| print(r.json()) |
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
| # System-wide .bashrc file for interactive bash(1) shells. | |
| # To enable the settings / commands in this file for login shells as well, | |
| # this file has to be sourced in /etc/profile. | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # check the window size after each command and, if necessary, | |
| # update the values of LINES and COLUMNS. |
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
| Debian | |
| # 1. Add this line to your list of repositories by | |
| # editing your /etc/apt/sources.list | |
| deb http://repository.spotify.com stable non-free | |
| # 2. If you want to verify the downloaded packages, | |
| # you will need to add our public key | |
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 | |
| # 3. Run apt-get update |
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
| // ==UserScript== | |
| // @name Vortek Preload | |
| // @namespace vortek | |
| // @description Load variables | |
| // @include http://localhost/vortek_php/* | |
| // @version 1 | |
| // ==/UserScript== | |
| // a function that loads jQuery and calls a callback function when jQuery has finished loading | |
| function addJQuery(callback) { | |
| var script = document.createElement("script"); |