Skip to content

Instantly share code, notes, and snippets.

function requestApi() {
return $q.when();
}
var wrapApi = lastPromise(requestApi)
.then(function() {
// we are done here
});
function lastPromise(fn) {
@xsurge83
xsurge83 / README.md
Last active February 8, 2016 05:00
fresh block
@xsurge83
xsurge83 / lambda_function.py
Created March 8, 2022 19:36 — forked from psa-jforestier/lambda_function.py
AWS Lambda function to gzip compress file when upload to S3 (will replace original file with gz version)
###
### This gist contains 2 files : settings.json and lambda_function.py
###
### settings.json
{
"extensions" : ["*.hdr", "*.glb", "*.wasm"]
}
### lambda_function.py