Skip to content

Instantly share code, notes, and snippets.

View soos3d's full-sized avatar
🏗️
BUIDLING

Soos3D soos3d

🏗️
BUIDLING
View GitHub Profile
@soos3d
soos3d / README.md
Last active June 22, 2022 20:10
You can use this webpage to test how a website can interact with MetaMask.

Example webpage to interact with MetaMask

Here you have a very simple website that, when run, allows you to connect your MetaMAsk and interact.

Use it to learn what the different parameters are; and how MetaMask builds a transaction in JavaScript.

Deploy a Ropsten node on Chainstack and use it as an endpoint for your MetaMask. Follow this link for instructions, Chainstack on MetaMask.

This way, you will be able to see the requests sent from MetaMask to the node on the Chainstack dashboard.

@soos3d
soos3d / uninstall_python3.md
Last active June 26, 2024 13:50 — forked from zhensongren/uninstall_python3.MD
How to uninstall python3 from Ubuntu

Install Go lang and the Bor client

Install Go lang and the Bor client on Ubuntu 20.04 lts.

Intall Go lang

We need at least version 1.19 of Go.

Install ubuntu updates

@soos3d
soos3d / starknet-cairo.md
Last active October 18, 2022 20:51
This Gist holds and introduction to the StarkNet ecosystem and the Cairo smart contract language.
@soos3d
soos3d / starknet_verify_contract.md
Last active October 20, 2022 19:06
Verify a smart contract on StarkNet
@soos3d
soos3d / cairo_storage.cairo
Last active October 29, 2022 10:34
Simple Cairo contract to store and retrive a variable.
%lang starknet
from starkware.cairo.common.cairo_builtins import HashBuiltin
// Store a variable
// Storage vars are by default not visible through the ABI. They are similar to "private" variables in Solidity.
// This variable is a felt and is called my_value_storage
// From within a smart contract, it can be read with my_value_storage.read() or written to with my_value_storage.write()
@storage_var
@soos3d
soos3d / README.md
Last active April 6, 2023 17:30
Use web3.py to get ERC-20 transfer logs for a specific account.

This code uses the eth_getLogs method to retrieve logs. Logs are generated when an event is emitted from a smart contract. We look at the transfer event from ERC-20 contracts in this case.

Here is how logs work:

The transfer event in the ERC-20 contract looks like this:

event Transfer(address indexed from, address indexed to, uint value);
@soos3d
soos3d / README.md
Created April 18, 2023 21:07
Solidity course

Introduction to Solidity Programming

For: Beginners Key Words: program, smart contracts Last update by: Constantine Fomchenkov Last updated time: February 21, 2023 5:58 AM Topic: Fundementals

💻 This is a Solidity onboarding guide designed for beginners. You'll learn all the basics of Solidity, which is the language used for writing smart contracts on the Ethereum blockchain.
@soos3d
soos3d / README.md
Last active February 11, 2024 18:06
LLama Indx guide draft

Chat with Your Code: LlamaIndex and Activeloop Deep Lake for GitHub Repositories 🦙🌊

This guide is your quickstart toolkit for integrating LlamaIndex with Activeloop Deep Lake. You'll learn how to effortlessly index GitHub repositories into Deep Lake and interact with your code through natural language queries.

What are LlamaIndex and Activeloop Deep Lake?

LlamaIndex: Your Data Framework for LLMs

LlamaIndex is a bridge between your data and Language Learning Models (LLMs). Whether your data resides in APIs, SQL databases, or PDFs, LlamaIndex ingests and structures it into a format easily consumable by LLMs. It offers features like data connectors for various data sources, indexing capabilities for quick retrieval, and natural language query engines that make your data not just accessible but also interactive.

@soos3d
soos3d / README.md
Last active September 12, 2023 17:36
Bun server fetching Ethereum address