Skip to content

Instantly share code, notes, and snippets.

View amiantos's full-sized avatar
🤘
PSI Rockin

Brad Root amiantos

🤘
PSI Rockin
View GitHub Profile
@amiantos
amiantos / ToroidalMatrix.swift
Last active June 8, 2019 18:04
Swift 2D Toroidal Array
//
// 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> {
@amiantos
amiantos / Fluid Nightmare.gbook
Created September 1, 2019 19:44
Example of BRGamebookEngine JSON export
{
"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 / index.js
Last active October 30, 2024 20:12
Zip Multiple Files from S3 using AWS Lambda Function
// 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 / rpg_movement_template.p8
Created November 22, 2020 22:39
RPG Movement Template for Pico-8 by mantenner
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
--an rpg movement template
--designed by mantenner
--available for any use
--enjoy!
--variables
@amiantos
amiantos / pico-8_starter_template.p8
Created November 22, 2020 23:27
Pico-8 Project Starter Template
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
function _init() menu_init() end
function menu_init()
_update=menu_update
_draw=menu_draw
end
@amiantos
amiantos / grource-video.sh
Last active April 7, 2023 16:39
Gource Name Cleanup and Video Export
# Install gource and ffmpeg
brew install gource ffmpeg
# Export activity list
gource --output-custom-log repo-activity.txt
# Then clean up names in repo-activity.txt
code repo-activity.txt
# Then pick a grouce command based on your needs