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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Sheets API Quickstart</title> | |
<meta charset='utf-8' /> | |
<!-- <link rel="stylesheet" type="text/css" href="./mystyle.css"> --> | |
</head> | |
<body> | |
<p>Google Sheets API Quickstart</p> |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #000; | |
} | |
</style> | |
<body> |
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
(let [[G E] | |
(foppl-query | |
(defn loopi [i mu] (assoc mu (+ i 1) (sample (normal (get mu i) 1)))) | |
(loop 4 (vector 1 1 1 1 1) loopi))] | |
(print-graph G) | |
(:body E)) | |
;;; Vertices V: #{x38089 x38096 x38075 x38082} | |
;;; | |
;;; Arcs A: #{} |
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
{:user | |
{:plugins [[lein-exec "0.3.6"] | |
[lein-gorilla "0.4.0"]] | |
:dependencies [[proto-repl "0.3.1"]]}} |
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
# coding: utf-8 | |
# Importing libraries | |
# In[1]: | |
import pandas as pd | |
import numpy as np |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# you have to execute this code line by line so use jupyter notebook or hydrogen inside atom editor | |
# import libraries | |
import ccxt | |
from datetime import datetime | |
# create exchange API handle | |
exchange = getattr(ccxt, 'binance')() | |
# paste in your API key and secret here (if you're afraid they're gonna get stolen, inspect the ccxt library open source code on github) | |
exchange.apiKey = '' |
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 asyncio | |
import ccxt.async as ccxt | |
from collections import defaultdict | |
exchanges = list() | |
exchanges.append(('binance', apiKey, secret)) | |
exchanges.append(('livecoin', apiKey, secret)) | |
tasks = list() | |
tasks += [ccxt.coinmarketcap({'timeout':100000}).fetch_tickers(params={'limit':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
import matplotlib | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy.stats as stats | |
import scipy.special as special | |
import scipy | |
plt.rcParams["figure.figsize"] = (16,10) |
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 torch | |
from torch import tensor | |
import torch.distributions as td | |
import torch.optim as optim | |
import matplotlib.pyplot as plt | |
from torch import isinf, isnan | |
from tqdm import tqdm as tqdm | |
import numpy as np | |
import scipy.stats |
OlderNewer