Skip to content

Instantly share code, notes, and snippets.

View nllarson's full-sized avatar

Nick Larson nllarson

  • @objectpartners
  • Omaha, NE
View GitHub Profile
async function a(){
console.log("a");
b();
console.log("b done");
}
async function b(){
console.log("starting b");
await Promise.resolve(res => setTimeout(() => res()), 1000);
console.log("finishing b");
@reggie3
reggie3 / BraintreeLambda.js
Last active November 2, 2021 11:20
Braintree Node Server Lambda
/***********************************************************************************
AWS Lambda boilerplate for API functions
This boilerplate is designed to be used with AWS API gateway and to return information
to a client
***********************************************************************************/
const util = require("util");
// - provide access to aws-sdk
//const AWS = require('aws-sdk');

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.