Skip to content

Instantly share code, notes, and snippets.

View philtsip's full-sized avatar

Philipp Tsipman philtsip

View GitHub Profile
@philtsip
philtsip / yql_custom
Created November 20, 2013 13:53 — forked from ryanh-ai/yql_custom
#Custom YQL Query Pointing at Unpublished XML via github
# "balancesheet" can be replaced with incomestatement or cashflow to get those reports
use "https://raw.github.com/canada4663/yql-tables/master/yahoo/finance/yahoo.finance.balancesheet.xml" as yahoo.finance.balancesheet;
select * from yahoo.finance.balancesheet where symbol="T";
#For Annual data
select * from yahoo.finance.balancesheet where symbol="T" and timeframe="annual";
#Once yql-tables pull request is completed, you can eliminate the "use..." portion and point directly at yahoo.finance.balancesheet
@philtsip
philtsip / array.math.js
Last active March 11, 2022 21:12
JavaScript Array Math Utils: Math.log Math.logArray Math.expArray Math.diffArray Math.roundArray Array.prototype.transpose addArray pastorFuture. Use these together for forecasting functions. Example: Math.roundArray(Math.diffArray(Math.logArray([10, 100, 1000, 10000])), 3);
/* JAVASCRIPT ARRAY MATH UTILS
Use these together for forecasting functions
Example: Math.roundArray(Math.diffArray(Math.logArray([10, 100, 1000, 10000])), 3);
Math.log
Math.logArray
Math.expArray
Math.diffArray
Math.roundArray