Skip to content

Instantly share code, notes, and snippets.

@amanuel
amanuel / tabssafari2firefox.scpt
Last active October 19, 2024 19:57
Move Safari Tabs to Firefox (preserves windows)
tell application "Firefox"
activate
set safariWindows to getSafariWindows() of me
repeat with w in safariWindows
set newTabURLs to takeSafariTabURLs(w) of me
repeat with tabURL in newTabURLs
open location tabURL
delay 0.5
end repeat
tell application "System Events" to keystroke "n" using command down
@jimmysitu
jimmysitu / morningstar.com API.md
Last active April 7, 2025 14:54
morningstar.com API

morningstar.com API

  • Get key ratio, return csv format file
http://financials.morningstar.com/ajax/exportKR2CSV.html?t=<market>:<stock>

Market

  • XHKG: Hong Kong Stock Exchange
  • XASE: American Stock Exchange
  • XNAS: Nasdaq Stock Exchange >* XNYS: New York Stock Exchange
@jckantor
jckantor / stock.m
Last active October 15, 2023 17:56
A Matlab class for obtaining quotes from Yahoo Finance.
% STOCK A Matlab class for obtaining quotes from Yahoo Finance.
%
% SYNOPSIS
%
% stock(symbol,speriod,sfreq)
% Creates an object for the current quote and historical prices for
% the stock denoted by SYMBOL.
%
% symbol String or cell array of strings denoting desired stocks.
%