Skip to content

Instantly share code, notes, and snippets.

View SeanDrum's full-sized avatar

Sean Drummy SeanDrum

  • Spryker
  • Boston
View GitHub Profile
@SeanDrum
SeanDrum / AzureBlobDownload.cs
Created April 24, 2021 22:48
A simple example of how to download all files in a Azure Blob Container using a SAS Auth Method
using System;
using System.Configuration;
using System.IO;
using System.Threading.Tasks;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
namespace AzureBlobDownload
{
class AzureBlobDownload
@SeanDrum
SeanDrum / DraftKingsApi.js
Created April 14, 2021 01:50
Example usage of some key Draft Kings API endpoints to obtain players and salaries for a given sport's slate.
const got = require('got');
const util = require('util');
(async () => {
try {
//Get the contests
const contestsResponse = await got('https://www.draftkings.com/lobby/getcontests?sport=LOL');
const contestsJson = JSON.parse(contestsResponse.body);
@SeanDrum
SeanDrum / getWidgets.py
Last active February 1, 2021 22:44
Example Python Lambda Warmer
def getWidgets (event, context):
try:
if event['warmer'] == 1:
return 'warmed'
except KeyError:
pass
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('Widgets')