Google Spreadsheet scripts for Coinbase and USD/BTC and USD/other currencies.
If you found this useful, donate XMR!: 44WvZj9zRXqgq3jHpemt8dLt29aDRQqdiK6ivxoCf3e65cdXbzBnHJyc2CdGWeGr36f5MBkqQBb61hus34nUVae4ND2PKx4
Made with love from Chile
| import functools | |
| class memoize(object): | |
| def __init__(self, func): | |
| self.func = func | |
| self.cache = {} | |
| def __call__(self, *args): | |
| return self.cache_get(args, lambda: self.func(*args)) | |
| def __get__(self, obj, objtype): | |
| return self.cache_get(obj, lambda: self.__class__(functools.partial(self.func, obj))) |
| // vim: ft=javascript: | |
| /*jslint sloppy: true, vars: true, white: true, nomen: true, browser: true */ | |
| /*global SpreadsheetApp, UiApp, UrlFetchApp, Utilities */ | |
| /* | |
| * A script to automate requesting data from an external url that outputs CSV data. | |
| * | |
| * Adapted from the Google Analytics Report Automation (magic) script. | |
| * @author nickski15@gmail.com (Nick Mihailovski) | |
| * @author ianmlewis@gmail.com (Ian Lewis) | |
| */ |
| const axios = require('axios').default; | |
| function getAPIClient() { | |
| const axiosConfig = { | |
| baseURL: 'https://csrng.net/csrng/csrng.php', | |
| timeout: 5000, | |
| }; | |
| return axios.create(axiosConfig); | |
| } |
| ## Thanks to https://twitter.com/JNP7771 for the script at https://playcode.io/780618/ | |
| ## imports | |
| import requests | |
| import json | |
| import pandas as pd | |
| import math | |
| from beautifultable import BeautifulTable | |
| x96 = math.pow(2, 96) |
| #!/usr/bin/env node | |
| const { argv } = require('process'); | |
| /** | |
| Static http server implemented with NodeJS. | |
| Features: | |
| 1. No external dependencies |
| import os | |
| import sys | |
| import traceback | |
| from functools import wraps | |
| from multiprocessing import Process, Queue | |
| def processify(func): | |
| '''Decorator to run a function as a process. | |
| Be sure that every argument and the return value |
| #!/usr/bin/env bash | |
| sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
| sudo apt update | |
| sudo update-alternatives --remove-all gcc | |
| sudo update-alternatives --remove-all g++ | |
| sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git