This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assumes using serverless-webpack or Node 14+ | |
// See here for more details: https://stackoverflow.com/a/60896150 | |
import DynamoDB from 'aws-sdk/clients/dynamodb'; | |
const docClient = new DynamoDB.DocumentClient(); | |
export const handler = async () => { | |
const params = { | |
TableName: 'table-name', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section class="container"> | |
<div> | |
<app-logo> | |
<h1 class="title"> | |
Demo | |
</h1> | |
<h2 class="subtitle"> | |
My project | |
</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var d1 = new Date(); | |
var d2 = new Date(); | |
localStorage.d1 = d1; // add to localStorage | |
localStorage.d2 = d2; | |
d1 = Date.parse(localStorage.d1); // pull from localStorage and parse to date object | |
d2 = Date.parse(localStorage.d2); | |
console.log(d2 - d1); // milliseconds elapsed between the two times. | |
localStorage.clear(); // clear local storage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . | |
git add . | |
git commit -m 'reset .gitignore' |