Skip to content

Instantly share code, notes, and snippets.

View tarrencev's full-sized avatar

Tarrence van As tarrencev

View GitHub Profile
@tarrencev
tarrencev / gist:26e966d8e59f5c9d3f0bb0e906d97771
Created January 3, 2022 23:23
foundry test runner github action
name: tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
@tarrencev
tarrencev / README.md
Last active September 9, 2021 16:00
rle tools

rle tools for converting a png to nouns rle encoding

NOTE: this is very rough and values are hard coded. publishing just for education. feel free to improve it.

first extract colors with colors.py next encode with encoder.py use decoder.py to view output

Keybase proof

I hereby claim:

  • I am tarrencev on github.
  • I am tarrencev (https://keybase.io/tarrencev) on keybase.
  • I have a public key ASDhQnuwm0Zlo0iPJ5iZ32HFSwzG8uRTbe4tqSPqGAKVzQo

To claim this, I am signing this object:

function sketch(p) {
const sizeX = 200;
const sizeY = 200;
const offset = 50;
const col1 = "rgb(211, 63, 73)";
const col2 = "rgb(214, 190, 192)";
const col3 = "rgb(48, 38, 38)";
p.setup = function() {
p.createCanvas(window.innerWidth, window.innerHeight);
@tarrencev
tarrencev / TransactionDelegate.sol
Last active May 23, 2018 20:31 — forked from backus/EthedIn.sol
Example #1 for "How to make a user friendly Ethereum dApp"
// Transaction Delegation is a generic way to enable transactions to be signed by one ethereum account
// and be sent by a different account. Enabling improved UX patterns where users of an application
// do not need to pay for transaction gas and do not necessarily need to have any ether at all to
// interact with an application.
//
// To delegate a transaction, a user A creates a transaction and signs the hash keccak256(calldata, nonce).
// The calldata and signature v, r, s is then communicated to user B who will submit the transaction on
// their behalf. User B submits the transaction by calling `TransactionDelegate.delegatedTxn`.
//
// This contract requires elevated privledges to the target contract allowing it to submit transactions