Skip to content

Instantly share code, notes, and snippets.

@boxxa
boxxa / sp500_symbols.js
Last active March 11, 2020 03:00
S&P500 Symbols
var sp500_symbols = ['ABT', 'ABBV', 'ACN', 'ACE', 'ADBE', 'ADT', 'AAP', 'AES', 'AET', 'AFL', 'AMG', 'A', 'GAS','APD', 'ARG', 'AKAM', 'AA', 'AGN', 'ALXN', 'ALLE', 'ADS', 'ALL', 'ALTR', 'MO', 'AMZN', 'AEE','AAL', 'AEP', 'AXP', 'AIG', 'AMT', 'AMP', 'ABC', 'AME', 'AMGN', 'APH', 'APC', 'ADI', 'AON','APA', 'AIV', 'AMAT', 'ADM', 'AIZ', 'T', 'ADSK', 'ADP', 'AN', 'AZO', 'AVGO', 'AVB', 'AVY','BHI', 'BLL', 'BAC', 'BK', 'BCR', 'BXLT', 'BAX', 'BBT', 'BDX', 'BBBY', 'BRK-B', 'BBY', 'BLX',
'HRB', 'BA', 'BWA', 'BXP', 'BSK', 'BMY', 'BRCM', 'BF-B', 'CHRW', 'CA', 'CVC', 'COG', 'CAM', 'CPB','COF', 'CAH', 'HSIC', 'KMX', 'CCL', 'CAT', 'CBG', 'CBS', 'CELG', 'CNP', 'CTL', 'CERN', 'CF', 'SCHW', 'CHK','CVX', 'CMG', 'CB', 'CI', 'XEC', 'CINF', 'CTAS', 'CSCO', 'C', 'CTXS', 'CLX', 'CME', 'CMS', 'COH', 'KO', 'CCE','CTSH', 'CL', 'CMCSA', 'CMA', 'CSC', 'CAG', 'COP', 'CNX', 'ED', 'STZ', 'GLW', 'COST', 'CCI', 'CSX', 'CMI', 'CVS','DHI', 'DHR', 'DRI', 'DVA', 'DE', 'DLPH', 'DAL', 'XRAY', 'DVN', 'DO', 'DTV', 'DFS','DISCA', 'DISCK', 'DG', 'DLTR',
### Keybase proof
I hereby claim:
* I am boxxa on github.
* I am boxxa (https://keybase.io/boxxa) on keybase.
* I have a public key ASCe88aC25W3QjhBxSJNaaO8SmFWNZ_t-wMDUqJuy0MdJwo
To claim this, I am signing this object:
var Fiber = require("fibers");
Fiber(function(){
var dataSet = $proc.data.fetchData();
console.log("Running Calc")
var calcResult = $proc.ta.calc(dataSet)
console.log("Done with Calc")
console.log(calcResult)
}).run();
Output:
@boxxa
boxxa / dhas.js
Created November 30, 2015 05:33
Ghost doesn't has (doesn't have) Helper
// # Doesn't Has Helper
// Usage: `{{#dhas tag="video, music"}}`, `{{#dhas author="sam, pat"}}`
//
// Checks if a post doesn't have (doesn't has) a particular property for easy omitting in loop.
var _ = require('lodash'),
errors = require('../errors'),
dhas;
dhas = function (options) {
@boxxa
boxxa / autoview-syntax.txt
Last active November 13, 2015 16:57 — forked from tranzium/autoview-syntax.txt
TradingView can now become automated trading.
---------- Usage
The syntax created by these parameters is placed in an alert's description on Trading View
to be utilized by the AutoView Chrome Extension.
TradingView: https://www.tradingview.com/
AutoView: https://chrome.google.com/webstore/detail/autoview/okdhadoplaoehmeldlpakhpekjcpljmb
---------- Syntax
<letter>=<value>
@boxxa
boxxa / run.js
Created July 9, 2015 03:32
Quick NodeJS Static Server
// Quick way to serve files in a web server for testing
// npm install connect serve-static
// node run.js folder
var dirPath = process.argv[2];
console.log("Serving: " + dirPath);
var connect = require('connect');
var serveStatic = require('serve-static');
connect().use(serveStatic(dirPath)).listen(8080);
@boxxa
boxxa / index.html
Last active August 29, 2015 14:20
Meteor-Polymer Example with Core-Scaffolding
<head>
<link rel="import" href="/bower_components/core-scaffold/core-scaffold.html">
<link rel="import" href="/bower_components/core-header-panel/core-header-panel.html">
<link rel="import" href="/bower_components/core-menu/core-menu.html">
<link rel="import" href="/bower_components/core-item/core-item.html">
<link rel="import" href="/bower_components/core-icon-button/core-icon-button.html">
<link rel="import" href="/bower_components/core-toolbar/core-toolbar.html">
<link rel="import" href="/bower_components/core-menu/core-submenu.html">
<style>
#core_scroll_header_panel {
@boxxa
boxxa / client.js
Created May 8, 2015 15:21
Iron-Router Session Variable Hook
Meteor.call('setStatus', statusMessage, function(error, result){
if(result)
{
Session.set('isAway', true)
Router.go('/')
} else {
Router.go('/error')
}
})