Skip to content

Instantly share code, notes, and snippets.

View daniele-salvagni's full-sized avatar
🧪

Daniele Salvagni daniele-salvagni

🧪
View GitHub Profile
@tarasowski
tarasowski / lambda-async-await.md
Last active July 22, 2023 04:47
#Lambda - Async/Await Rules
  1. The function after await someFunc() need to return a promise. Otherwise it will not await and exit from the function. The function below will simply exit and won't wait till the background process is finished. Since async functions are waiting for Promises. The keyword await makes JavaScript wait until that promise settles and returns its result.
const hello4 = () => setTimeout(() => console.log('Hello from Hello4'), 5000)

const asycFunc = async() => {
	await hello4()
    return
}
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 15, 2024 20:11
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@lbbedendo
lbbedendo / gist:99fc27d05405cd517ebaa03f7ea67e87
Created December 13, 2019 16:16
Configuring GraalVM in Ubuntu 18.04
#Installing GraalVM with SDKMAN (https://sdkman.io/)
sdk install java 19.2.1-grl
#Installing build tools (C development environment)
sudo apt install build-essential libz-dev zlib1g-dev
#Configuring GraalVM environment variable
#1. Edit global environment file
sudo vim /etc/environment
@cmackenzie1
cmackenzie1 / docker-compose.yml
Last active April 26, 2024 16:38
Docker Compose for DynamoDB Local and Admin UI
version: '3.7'
services:
dynamodb-local:
image: amazon/dynamodb-local:latest
container_name: dynamodb-local
ports:
- "8000:8000"
dynamodb-admin:
image: aaronshaf/dynamodb-admin
@hyperupcall
hyperupcall / settings.jsonc
Last active May 13, 2024 22:21
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{