Skip to content

Instantly share code, notes, and snippets.

View benhenryhunter's full-sized avatar

Benjamin Hunter benhenryhunter

View GitHub Profile
<template>
<div
class="custom-select"
:tabindex="tabindex"
@blur="open = false"
>
<label class="label" :class="{error}">
{{ label }}
</label>
<a
package main
import (
"context"
"fmt"
"log"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
package main
import (
"context"
"fmt"
"log"
"strconv"
"strings"
"github.com/ethereum/go-ethereum/common"
@benhenryhunter
benhenryhunter / main.go
Created July 8, 2022 22:05
Signing transaction for Flashbots MegaBundles
package main
import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"fmt"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
@benhenryhunter
benhenryhunter / debounce.go
Last active February 23, 2023 18:54
Debouncing function calls in Golang
// You can edit this code!
// Click here and start typing.
package main
import (
"fmt"
"time"
)
func main() {
@benhenryhunter
benhenryhunter / main.go
Last active February 23, 2023 22:17
Exploring go-redis pipelines
package main
import (
"context"
"fmt"
"time"
"github.com/redis/go-redis/v9"
)
@benhenryhunter
benhenryhunter / main.go
Last active May 5, 2023 20:27
SSZ vs JSON redis set and get
package main
import (
"context"
"os"
"time"
"log"
"github.com/attestantio/go-eth2-client/spec/capella"
package main
import (
"context"
"fmt"
"time"
"github.com/redis/go-redis/v9"
)
@benhenryhunter
benhenryhunter / main.go
Created August 25, 2023 15:09
websocket with blxr
package main
import (
"fmt"
"net/http"
"github.com/gorilla/websocket"
)
func main() {