name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays
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 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 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 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 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
| ///////////////////////// | |
| //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()); |