Skip to content

Instantly share code, notes, and snippets.

@fcfort
fcfort / YahooPrices.gs
Created May 10, 2016 20:27
Google App Scripts for querying Yahoo! finance API ticker prices
var _ = Underscore.load();
/*
* Queries Yahoo finance API for historical prices for a given list of tickers
*
* @param {Array} tickers A list of tickers
* @param {Date} date Date to query for. Must be a date the markets were open
* @return A map of ticker to adjusted close prices
*/
@fcfort
fcfort / NYSaves.gs
Last active February 28, 2021 02:03
Custom function for Google Spreadsheets App Scripts for querying NYSaves.org prices
var _ = Underscore.load();
var NYSaves = {};
NYSaves.currentPriceUrlBase = 'https://www.nysaves.org/nytpl/fund/details.cs?fundId=';
NYSaves.historyUrl = 'https://www.nysaves.org/nytpl/fund/priceHistorySearch.cs';
/**
@fcfort
fcfort / Selenium2Example.java
Created January 19, 2016 18:01
Take screenshots automatically
package asdff;
import com.google.common.base.Predicate;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.TimeoutException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;