Skip to content

Instantly share code, notes, and snippets.

View daaru00's full-sized avatar
🐢

Fabio Gollinucci daaru00

🐢
View GitHub Profile
@daaru00
daaru00 / abstract.js
Last active February 13, 2021 15:32
DynamoDB model helper (with promise wrapper)
const DynamoDB = require('aws-sdk/clients/dynamodb')
const documentClient = new DynamoDB.DocumentClient({
apiVersion: '2012-08-10',
// logger: console
})
module.exports = class Model {
/**
* Model constructor
@daaru00
daaru00 / lambda.js
Last active February 13, 2021 15:31
AWS CloudFormation manage secrets with System Manager Parameter
const axios = require('axios')
/**
* AWS clients
*/
const SSM = require('aws-sdk/clients/ssm')
const ssm = new SSM()
/**
* Lambda handler
@daaru00
daaru00 / App.vue
Last active November 21, 2020 22:54
Storyblok rich text render component
<template>
<div id="app">
<!-- get page data -->
<vs-rich-text :document="doc" />
</div>
</template>