Skip to content

Instantly share code, notes, and snippets.

View VoR0220's full-sized avatar

RJ Catalano VoR0220

View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "./PuzzleBox.sol";
// One word, or 32 bytes
uint256 constant ONE_WORD = 0x20;
// We lay out calldata in memory starting at this offset, immediately after the
// 4 byte function selector
@jakecoffman
jakecoffman / go_functional.go
Last active December 14, 2021 16:04
Example of functional programming in Golang.
package main
import (
"constraints"
"fmt"
)
func main() {
fmt.Println(Sum(1, 2, 3, 4))
fmt.Println(Sum("1", "2", "3"))