Skip to content

Instantly share code, notes, and snippets.

@brotsky
brotsky / intraday-endpoint
Created May 4, 2020 20:20
Intraday Endpoint
import { NowRequest, NowResponse } from '@now/node'
import fetch from 'node-fetch'
import isNil from 'lodash/isNil'
const apiUrl = process.env.ALPHA_VANTAGE_API_URL
const apiKey = process.env.ALPHA_VANTAGE_API_KEY
const interval = process.env.ALPHA_VANTAGE_TIME_SERIES_INTERVAL
const apiFunction = 'TIME_SERIES_INTRADAY'
const apiOutputSize = 'full'
@brotsky
brotsky / main.py
Created April 22, 2020 02:57
Calculon
import os
import json
import base64
from decimal import *
from flask import Flask, jsonify, request
from datetime import date, datetime, timedelta
from dateutil import parser
import collections
@brotsky
brotsky / main.js
Created April 10, 2018 15:58
Main JS file for FM.com
var subtitle = "WRITER | DIRECTOR | PRODUCER | EXPERIENTIAL EVENTS";
! function(e) {
function t(n) {
if (o[n]) return o[n].exports;
var i = o[n] = {
i: n,
l: !1,
exports: {}
};