Skip to content

Instantly share code, notes, and snippets.

@jnayak1
jnayak1 / maydan.py
Created May 2, 2020 16:42
Automation for getting reservation on Resy.com for Maydan
#!/usr/bin/env python
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import datetime
import time
options = Options()
options.headless = True
@jnayak1
jnayak1 / index.js
Last active August 21, 2019 02:57
Node.js AWS Lambda function for creating thumbnails
const AWS = require('aws-sdk');
const sharp = require('sharp');
const stream = require('stream');
const WIDTH = 200;
const S3 = new AWS.S3();
exports.handler = (event, context) => {
event.Records.forEach((record, index, array) => {
var bucket = record.s3.bucket.name;