Skip to content

Instantly share code, notes, and snippets.

View dionjwa's full-sized avatar

Dion dionjwa

View GitHub Profile
@dionjwa
dionjwa / package-aws-lambda.sh
Last active January 24, 2018 20:50
Given a source folder for an AWS Lambda package, builds and zips the lambda inside an AWS Linux docker container, ensuring all native node.js modules are compiled for the correct architecture.
#!/usr/bin/env bash
if [ $# -eq 0 ]; then
echo ""
echo " Package an AWS Lambda script with all node modules into a zip file"
echo " The packager runs in an AWS Linux docker container, so the node "
echo " modules are compiled for the correct architecture."
echo ""
echo " -s/--src The source folder of the lambda script"
echo " -d/--destination The destination folder for the lambda zip file"
@dionjwa
dionjwa / index.html
Created September 25, 2022 02:49
MediaPipe - Hands
<body>
<style>
.square-box {
width: 33%;
height: 0;
padding-top: 33%;
position: absolute;
right: 20px;
top: 20px;
}