This file contains 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 scipy.optimize | |
import pandas | |
def probability_constraint(x): | |
j, n = x.shape | |
Aeq = numpy.ones([1, j]) | |
beq = numpy.array([1.]) |
This file contains 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 ruby | |
# gem install active_support | |
require 'active_support/inflector' | |
require 'active_support/core_ext/string' | |
# gem install webrick (only ruby3) | |
require 'webrick' | |
# gem install mechanize |
This file contains 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
///////////////////////// | |
//Section 1: Coin Value// | |
///////////////////////// | |
//////////////////////////////////////////////////////////////////////////////////////////////// | |
//coin market value lookup (works for all coins, just pass a single coin symbol as a parameter) | |
function getCoinPriceBySymbol(symbol) { | |
var url = 'https://api.coinmarketcap.com/v1/ticker/'; | |
var response = UrlFetchApp.fetch(url); | |
var json = JSON.parse(response.getContentText()); |