Skip to content

Instantly share code, notes, and snippets.

View rajitha1998's full-sized avatar
๐Ÿš€
Let's do this

Rajitha Warusavitarana rajitha1998

๐Ÿš€
Let's do this
View GitHub Profile
@rajitha1998
rajitha1998 / simpleDB.js
Created May 31, 2020 18:19
Auto generated code for AWS simple DB
class SimpleDB {
constructor(aws, options) {
this._AWS = aws;
this._apiVersion = options.apiVersion;
this._simpleDB = new this._AWS.SimpleDB({ apiVersion: this._apiVersion });
}
batchDelete(params) {
return new Promise((resolve, reject) => {
this._simpleDB.SDKFunctionName(params, (error, data) => {
if (error) {
@rajitha1998
rajitha1998 / groupSum.js
Created August 19, 2019 12:55
Grouping
const _ = require('lodash');
const array = ['A', 2, 3,
'B', 3, 5,
'B', 4, 1,
'A', 6, 2,
'C', 7, 1,
'A', 9, 1];
const list = [];