Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am egonelbre on github.
  • I am egonelbre (https://keybase.io/egonelbre) on keybase.
  • I have a public key ASCPXCOftj5WHDwWk_kjkT7UzvIjJ_m5euWJ8wLoO4H6Fwo

To claim this, I am signing this object:

@egonelbre
egonelbre / index.html
Created November 16, 2021 14:51
Hooking up WebAudio Analyser
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/~watch.js"></script>
</head>
<body>
@egonelbre
egonelbre / architecture.md
Last active January 7, 2023 02:33
Gio architecture brain-dump
title
Architecture

Introduction

Gio implements an Immediate Mode User Interface.. This approach can be implemented in multiple ways, however the overarching similarity is that the program:

  1. listens for events such as mouse or keyboard input,
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📝 Github Repository: https://github.com/gofiber/fiber
// 🙏 Credits to github.com/labstack/echo/blob/master/middleware/csrf.go
package csrf
import (
"crypto/subtle"
"errors"
@egonelbre
egonelbre / go.mod
Last active December 27, 2019 10:41
generate-aliases generates aliases for specified package
module generate-aliases
go 1.13
@egonelbre
egonelbre / go.mod
Last active October 17, 2021 17:26
Tool for rewriting import paths safely.
module rename-imports
go 1.13
require golang.org/x/tools v0.0.0-20191224055732-dd894d0a8a40
@egonelbre
egonelbre / count.svg
Created September 19, 2019 14:58
Density plot example.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@egonelbre
egonelbre / testcase.go
Created March 12, 2019 09:55
grpc bidi streaming testcase
package main
import (
"context"
"errors"
"fmt"
"net"
"time"
"google.golang.org/grpc"
@egonelbre
egonelbre / default.txt
Last active December 15, 2018 12:05
Go all.bat on all different filesystems
Building Go cmd/dist using C:\Go
Building Go toolchain1 using C:\Go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for windows/amd64.
##### Testing packages.
ok archive/tar 3.046s
@egonelbre
egonelbre / absolutecover.go
Created October 5, 2018 15:55
Converts Go profile from package paths to filepaths
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path"