Skip to content

Instantly share code, notes, and snippets.

@wrighter
wrighter / download_bars.py
Last active December 13, 2024 21:45
A command line utility to download historical data from Interactive Brokers
#!/usr/bin/env python
import os
import sys
import argparse
import logging
from datetime import datetime, timedelta
from typing import List, Optional
from collections import defaultdict
@KalebNyquist
KalebNyquist / airtable_helper.py
Last active August 6, 2024 02:14
Simple Download/Upload of Airtable Data into/from Python using Airtable API
import requests
import json
import pandas as pd
def airtable_download(table, params_dict={}, api_key=None, base_id=None, record_id=None):
"""Makes a request to Airtable for all records from a single table.
Returns data in dictionary format.
Keyword Arguments:
@danopia
danopia / Dockerfile
Last active May 2, 2024 18:30
ERCOT Frozen Grid 2021 - Metrics Reporters
FROM hayd/alpine-deno:1.10.1
WORKDIR /src/app
ADD deps.ts ./
RUN ["deno", "cache", "deps.ts"]
ADD *.ts ./
RUN ["deno", "cache", "mod.ts"]
ENTRYPOINT ["deno", "run", "--unstable", "--allow-net", "--allow-hrtime", "--allow-env", "--cached-only", "--no-check", "mod.ts"]
@sndao
sndao / ebay_listing_template.html
Created November 22, 2022 17:25
ebay_listing_template.html
<!--ITEM TITLE-->
<h1 style="font-size:24px; font-weight:bold; margin-bottom:0;">
<ITEM_TITLE_TEXT/>
</h1>
<!--DETAILS ABOUT THIS ITEM-->
<h2 style="font-size:20px; font-weight:bold; margin-top:32px; margin-bottom:3px;">
Details About This Item
</h2>