Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘
PSI Rockin

Brad Root amiantos

🤘
PSI Rockin
View GitHub Profile
@amiantos
amiantos / index.js
Last active Sep 21, 2020
Zip Multiple Files from S3 using AWS Lambda Function
View index.js
// Lambda S3 Zipper
// http://amiantos.net/zip-multiple-files-on-aws-s3/
//
// Accepts a bundle of data in the format...
// {
// "bucket": "your-bucket",
// "destination_key": "zips/test.zip",
// "files": [
// {
// "uri": "...", (options: S3 file key or URL)
@amiantos
amiantos / Fluid Nightmare.gbook
Created Sep 1, 2019
Example of BRGamebookEngine JSON export
View Fluid Nightmare.gbook
{
"website" : "https:\/\/amiantos.net",
"name" : "Fluid Nightmare",
"about" : "When you’ve drank too much water right before going to bed, you’re bound to have a... fluid nightmare!",
"uuid" : "83C2C958-CC37-469D-944B-B502B2197523",
"license" : "Creative Commons Attribution 4.0 International License",
"font" : "serif",
"pages" : [
{
"uuid" : "F89E7BFA-6FC7-4FDB-BB55-3B569A397DC3",
@amiantos
amiantos / ToroidalMatrix.swift
Last active Jun 8, 2019
Swift 2D Toroidal Array
View ToroidalMatrix.swift
//
// ToroidalMatrix.swift
// Derived from dimo hamdy https://stackoverflow.com/a/53421491/2117288
// https://gist.github.com/amiantos/bb0f313da1ee686f4f69b8b44f3cd184
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
struct ToroidalMatrix<T> {
You can’t perform that action at this time.