Skip to content

Instantly share code, notes, and snippets.


Rob Cameron cannikin

View GitHub Profile
cannikin / verify_txn.js
Created Feb 10, 2022 — forked from joe-p/verify_txn.js
Verify signed algosdk transaction (javascript)
View verify_txn.js
const algosdk = require('algosdk');
const nobleEd25519 = require('@noble/ed25519');
// setup connection to algoexplorer API
const algodClient = new algosdk.Algodv2("", '', '');
// generate a standalone account
const account = algosdk.generateAccount();
(async () => {
cannikin / site-config.conf
Last active Jan 20, 2022
nginx Config for Redwood Apps
View site-config.conf
# With this nginx config you'll be able to serve your static assets through nginx
# while serving the API from Redwood. Start your API server with `yarn rw serve api`
# (or better yet have pm2 manage it for you) and static assets will be delivered
# from /web/dist
# Static assets will be given max cache headers and gzipped.
# Note that this is only the config for a single site, not the entire global
# nginx config settings. Depending on your install, you may have a /etc/nginx/sites-available
# directory. This file goes in there, and then a symlink to it is added in
View parsed_schema.json
"datamodel": {
"enums": [],
"models": [
"name": "User",
"isEmbedded": false,
"dbName": null,
"fields": [
cannikin /
Last active Nov 22, 2021
RedwoodRecord: An ORM for Redwood


RedwoodRecord is an ORM (Object-Relational Mapping) for working with database data. Wikipedia says an ORM is for "converting data between incompatible type systems using object-oriented programming languages." In the world of web applications it usually means to a way get data in and out of your database in a way that feels more native to the language you're using, rather than trying to provide just a simple layer on top of raw SQL statements.

This document serves as a Readme Driven Development source for describing the behavior of this system.

cannikin / math.rb
Created Mar 9, 2021
Simple inline Ruby tests
View math.rb
# Just run this file with ruby to run tests: `ruby math.rb`
require 'minitest/autorun'
class Math
def self.add(a, b)
a + b
cannikin /
Last active Mar 28, 2020
Davinci Resolve 16.2 Rendering Exploration

Latest as of 2020-03-27

After a bunch of YouTube uploads I now think these two are the closest:

<iframe width="560" height="315" src="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0" allowfullscreen></iframe>
  • Timeline Gamma is Rec.709 (Scene)
  • Codec is h264 (much faster to upload and process)
  • Render Color Space is "Same"
  • Render Gamma is "Same"
View gist:34f92b1bf3fb7439b518b2dedc4978ca
View gist:189f7c8241eb942be77f194dbc5518bc
View gist:6ac3e4239d491fdf9db195bb3c97600e
View yarn.lock.diff
diff --git a/yarn.lock b/yarn.lock
index e8c899e..0592224 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -907,7 +907,7 @@
pirates "^4.0.0"
source-map-support "^0.5.16"
-"@babel/runtime-corejs3@^7.8.3", "@babel/runtime-corejs3@^7.8.4":
+"@babel/runtime-corejs3@^7.7.4", "@babel/runtime-corejs3@^7.8.3", "@babel/runtime-corejs3@^7.8.4":