Skip to content

Instantly share code, notes, and snippets.

View andrejrakic's full-sized avatar
:octocat:
Building Chainlink

Andrej andrejrakic

:octocat:
Building Chainlink
View GitHub Profile
@andrejrakic
andrejrakic / Caller.sol
Created May 18, 2022 23:10
Middleman contract example for DevConnect Game
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// x ----->
// _______________
// y |____|____|_____
// |____|____|_____
// |____|____|_____
// |____|____|_____
@andrejrakic
andrejrakic / readme.md
Last active October 13, 2023 18:40
Go vs Rust vs Node.js

Go vs Rust vs Node.js

Command Go Rust Node.js
Installation go install rustup nvm/volta/n/fnm
Package Manager go cargo npm/yarn/pnpm
Configuration go.mod Cargo.toml package.json
Testing go test cargo test jest/vitest/node:test
Building go build cargo build Webpack/turbo
@andrejrakic
andrejrakic / LogEmitter.sol
Created November 21, 2023 15:17
Data Streams workshop
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.19;
contract LogEmitter {
event Log(address indexed msgSender);
function emitLog() public {
emit Log(msg.sender);
}
@andrejrakic
andrejrakic / go-stdlib-interface-selected.md
Created March 9, 2024 11:46 — forked from asukakenji/go-stdlib-interface-selected.md
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.