This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getWidgets (event, context): | |
try: | |
if event['warmer'] == 1: | |
return 'warmed' | |
except KeyError: | |
pass | |
dynamodb = boto3.resource('dynamodb') | |
table = dynamodb.Table('Widgets') |