Skip to content

Instantly share code, notes, and snippets.

View fijiaaron's full-sized avatar

Aaron Evans fijiaaron

View GitHub Profile
@fijiaaron
fijiaaron / DynamoDB.ts
Created October 9, 2024 13:53 — forked from aevans-mms/DynamoDB.ts
AWS DynamoDB TypeScript Commands Wrapper and Simple Class
import * as dynamodb from "@aws-sdk/client-dynamodb"
const commands = {
"client" : (params:dynamodb.DynamoDBClientConfig) => new dynamodb.DynamoDBClient(params),
"listTables" : (params:dynamodb.ListTablesCommandInput) => new dynamodb.ListTablesCommand(params),
"describeTable" : (params:dynamodb.DescribeTableCommandInput)=>new dynamodb.DescribeTableCommand(params),
"query" : (params:dynamodb.QueryCommandInput) => new dynamodb.QueryCommand(params),
"scan" : (params:dynamodb.ScanCommandInput) => new dynamodb.ScanCommand(params),
"getItem" : (params:dynamodb.GetItemCommandInput) => new dynamodb.GetItemCommand(params),
"putItem" : (params:dynamodb.PutItemCommandInput) => new dynamodb.PutItemCommand(params),
@fijiaaron
fijiaaron / drag_and_drop_helper.js
Created April 11, 2017 23:24 — forked from rcorreia/drag_and_drop_helper.js
drag_and_drop_helper.js
(function( $ ) {
$.fn.simulateDragDrop = function(options) {
return this.each(function() {
new $.simulateDragDrop(this, options);
});
};
$.simulateDragDrop = function(elem, options) {
this.options = options;
this.simulateEvent(elem, options);
};