Skip to content

Instantly share code, notes, and snippets.

Avatar
Serverless

Amin Ahmed Khan aa2kb

Serverless
View GitHub Profile
View lambda-to-sns
var AWS = require('aws-sdk');
exports.handler = async (event) => {
try {
var snsParameters = {
TopicArn: process.env.SNS_TOPIC,
Message: JSON.stringify(event,null,2)
};
return await new AWS.SNS({ apiVersion: '2010-03-31' }).publish(snsParameters).promise();
}
@aa2kb
aa2kb / AWS-(CSA-ASC & CSA-PRO).md
Last active Feb 17, 2018 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications
View AWS-(CSA-ASC & CSA-PRO).md


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@aa2kb
aa2kb / cards.js
Created Feb 13, 2017
Cards-class
View cards.js
var numbers = ['ace','two','three','four','five','six','seven','eight','nine','ten','jack','queen','king'];
var suit = ['clubs','diamonds','hearts','spades'];
var deckSize = numbers.length * suit.length;
var $thedeck = [];
var playerSet = [];
const deck = class cardSet {
constructor() {
this.cards = [];
this.dealt = [];
@aa2kb
aa2kb / app.css
Created Feb 13, 2017
react-Commenting-System
View app.css
.App {
text-align: center;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 80px;
}
.App-header {