Write a Simple API that can:
- Create a user and register books that he/she owns
- Transfer book ownership
- Use AWS API Gateway with Lambda functions
- Use Dynamodb as the DB
| BEGIN:VCALENDAR | |
| PRODID:-//Google Inc//Google Calendar 70.9054//EN | |
| VERSION:2.0 | |
| CALSCALE:GREGORIAN | |
| METHOD:PUBLISH | |
| X-WR-CALNAME:TEST3 | |
| X-WR-TIMEZONE:America/Los_Angeles | |
| BEGIN:VEVENT | |
| DTSTART:20240127T024500Z | |
| DTEND:20240127T045000Z |
| import os | |
| import requests | |
| import json | |
| import base64 | |
| import hmac | |
| import hashlib | |
| import datetime, time | |
| def make_sell(amount, price): |
| from bs4 import BeautifulSoup | |
| import requests | |
| import csv | |
| import itertools | |
| TERMS = ['2020FA', '2020JA', '2019SP'] | |
| BASE_URL = 'https://eduapps.mit.edu/ose-rpt/' | |
| TERM_URL = BASE_URL + 'subjectEvaluationSearch.htm?termId=%s&departmentId=++15&subjectCode=&instructorName=&search=Search' | |
| HEADERS = { | |
| 'Connection': 'keep-alive', |
| local hotkey = require 'hs.hotkey' | |
| local window = require 'hs.window' | |
| local geometry = require 'hs.geometry' | |
| local mouse = require 'hs.mouse' | |
| local screen = require 'hs.screen' | |
| local position = import('utils/position') | |
| local monitors = import('utils/monitors') | |
| local function init_module() |
| local hotkey = require 'hs.hotkey' | |
| local window = require 'hs.window' | |
| local position = import('utils/position') | |
| local monitors = import('utils/monitors') | |
| local function module_init() | |
| local keys = config:get("arrows.keys", { | |
| UP = "top", | |
| DOWN = "bottom", |
| local alert = require 'hs.alert' | |
| import = require('utils/import') | |
| import.clear_cache() | |
| config = import('config') | |
| -- CONFIG FOR CAPS LOCK HACKING START | |
| -- reference: https://github.com/lodestone/hyper-hacks/blob/master/hammerspoon/init.lua | |
| -- A global variable for the Hyper Mode |
| local config = {} | |
| config.modules = { | |
| "arrangement", | |
| "monitors", | |
| "arrows", | |
| "fullscreen" | |
| } | |
| -- Maps monitor id -> screen index. |
| -- CONFIG FOR CAPS LOCK HACKING START | |
| -- reference: https://github.com/lodestone/hyper-hacks/blob/master/hammerspoon/init.lua | |
| -- A global variable for the Hyper Mode | |
| k = hs.hotkey.modal.new({}, "F17") | |
| local application_shortcuts = { | |
| b = "Google Chrome", | |
| u = "Sublime Text", | |
| l = "LINE", | |
| k = "Skype", |
I hereby claim:
To claim this, I am signing this object: