Skip to content

Instantly share code, notes, and snippets.

View goodylili's full-sized avatar
🎯
Focusing

Ukeje Goodness goodylili

🎯
Focusing
View GitHub Profile
@goodylili
goodylili / precompiles.go
Created January 26, 2025 13:52
Avalanche Precompiles
package precompile
import (
"errors"
"github.com/ava-labs/avalanchego/utils/crypto/bls"
)
// BLSSignatureVerify is the precompiled contract for BLS signature verification
type BLSSignatureVerify struct{}
@goodylili
goodylili / move.gitignore
Created January 24, 2025 08:27
.gitignore template for Move codebases
# Move CLI build artifacts
/build/
/storage/
/.move/
/move.lock
# Temporary files
*.tmp
*.swp
*.swo
@goodylili
goodylili / jwt.go
Created July 24, 2022 15:33
JWT tutorial in Go using the golang-jwt package
package main
import (
"encoding/json"
"fmt"
"github.com/golang-jwt/jwt"
"log"
"net/http"
"time"
)
@goodylili
goodylili / swapback.go
Created August 27, 2024 08:09
SwapTokensforETH
package main
import (
"context"
"crypto/ecdsa"
"errors"
"fmt"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/core/types"
@goodylili
goodylili / v2.go
Last active August 21, 2024 14:19
listen to uniswap pair created events
package main
import (
"context"
"fmt"
"log"
"math/big"
"strings"
"time"
@goodylili
goodylili / simapp.md
Last active July 8, 2024 14:50
Possible updates to Simapp documentation from the Cosmos SDK
sidebar_position
1

SimApp

SimApp is a CLI application built using the Cosmos SDK for testing and educational purposes.

Running testnets with simd

@goodylili
goodylili / views.py
Created November 23, 2023 06:11
script that reads articles for views
import schedule
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import time
import random # Import the random module
def setup_tor_profile():
"""Sets up a Firefox profile for Tor."""
profile = webdriver.FirefoxProfile()
@goodylili
goodylili / gith.go
Created December 30, 2023 08:42
GitHub OAuth Golang
package main
import (
"context"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"golang.org/x/oauth2/github"
"io"
"net/http"
@goodylili
goodylili / controller.go
Created November 8, 2022 11:46
Updates to LogRocket's Gin Gonic tutorial article
package controllers
import (
"Go-Tutorials/models"
"github.com/gin-gonic/gin"
"net/http"
)
type CreateBookInput struct {
Title string `json:"title" binding:"required"`
@goodylili
goodylili / gin.go
Last active January 18, 2024 09:24
CRUD API in Go using the Gin FrameWork - Article for Earthly Technologies
package main
import (
"github.com/gin-gonic/gin"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"log"
"net/http"
)