Skip to content

Instantly share code, notes, and snippets.

Avatar
🔨
Woodworking

Rob Cameron cannikin

🔨
Woodworking
View GitHub Profile
@cannikin
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("", 'https://api.testnet.algoexplorer.io', '');
// generate a standalone account
const account = algosdk.generateAccount();
(async () => {
@cannikin
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
cannikin / redwoodrecord.md
Last active Nov 22, 2021
RedwoodRecord: An ORM for Redwood
View redwoodrecord.md

RedwoodRecord

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
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
end
end
@cannikin
cannikin / resolve_rendering.md
Last active Mar 28, 2020
Davinci Resolve 16.2 Rendering Exploration
View resolve_rendering.md

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="https://www.youtube.com/watch?v=okDg09us28U?rel=0" 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
https://docs.google.com/document/u/0/d/16RKNoz1sbl9czUrDbtaJuTtIIbjiWjmI51KNt8JrVmI
https://flipgrid.com/6cc41ce5
View gist:189f7c8241eb942be77f194dbc5518bc
https://cetera.zoom.us/j/4595112813?pwd=Mi9hTjUrdEM1QUxwME1WYjNhSHZlZz09
View gist:6ac3e4239d491fdf9db195bb3c97600e
https://docs.google.com/document/d/1-g1Roz85tbSE58Ob8kS_QAl5RYVnoNqKRjAL2_NvXzY/edit?usp=sharing
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":