Skip to content

Instantly share code, notes, and snippets.

View emckee4's full-sized avatar

Evan McKee emckee4

  • SF Bay Area, California
View GitHub Profile
@emckee4
emckee4 / twilioLambdaProxyValidation.py
Created February 17, 2022 17:23
Twilio webhook validation for POST events using an AWS lambda proxy integration
"""Twilio webhook validation for POST events using an AWS lambda proxy integration.
This will return the parsed body or throw an exception if validation fails. It assumes
you are using an aws Lambda functions with an API Gateway proxy integration.
Example:
$ eventParser = TwilioEventParser(twilio_auth_token)
$ try:
$ parsedBody = eventParser.parse(event, validate=True)
$ except:
$ pass
@emckee4
emckee4 / Range+Extensions.swift
Created January 12, 2017 22:23
Prospective Range+Extensions for swift 3 intensityAttributingKit
//
// Range+Extensions.swift
// IntensityAttributingKit
//
// Created by Evan Mckee on 3/23/16.
// Copyright © 2016 McKeeMaKer. All rights reserved.
//
import Foundation