Skip to content

Instantly share code, notes, and snippets.

John Creecy zugdud

Block or report user

Report or block zugdud

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zugdud
zugdud / simpleSESIncomingEmailHandler.js
Last active Oct 17, 2017
Simple SES incoming email handler
View simpleSESIncomingEmailHandler.js
// Handle incoming SES email events, persist the message in S3 and forward to specified address
var AWS = require('aws-sdk');
var ses = new AWS.SES();
var s3Bucket = 'your-bucket-name-to-persist-email-data';
var yourEmail = 'yourname@gmail.com'; // your existing email account to forward emails to
exports.handler = (event, context, callback) => {
console.log(JSON.stringify(event));
View dijkstra.cpp
struct MatrixPosition
{
int y;
int x;
};
struct orderLeastWeight
{
inline bool operator()(const WeightedNode& weightedNode1, const WeightedNode& weightedNode2)
You can’t perform that action at this time.