Skip to content

Instantly share code, notes, and snippets.

View JonasFaure's full-sized avatar

Jonas Faure JonasFaure

  • Payfit
View GitHub Profile
@clemos
clemos / AoC2.js
Last active December 9, 2020 08:37
AoC 2020
fetch("https://adventofcode.com/2020/day/1/input").then(res => res.text()).then(text => text.split("\n").map(v => parseInt(v))).then(values => {
for(let i=0; i<values.length; i++) {
const v1 = values[i]
for(let j=i+1; j<values.length; j++) {
const v2 = values[j]
for(let l=j+1; l<values.length; l++) {
const v3 = values[l]
if( v1+v2+v3 === 2020) {
return v1*v2*v3
}
@HyperBrain
HyperBrain / package-plugin-lifecycle.md
Last active November 24, 2023 04:56
Serverless - Package/Deploy plugin lifecycle changes

Overview

Currently the Serverless framework only offers lifecycle events that are bound to commands and also are very coarse. Each core plugin only exposes the events that are defined by the framework. This is suboptimal for plugin authors as they want to hook special events within the deployment process.

The PR adds fine grained lifecycles to the AWS deployment process (see below for the current implementation process) and makes the package/deploy plugin implementation non-breaking.