Skip to content

Instantly share code, notes, and snippets.

View ethanfrey's full-sized avatar

Ethan Frey ethanfrey

View GitHub Profile
package bug
import (
"encoding/base64"
"testing"
)
func TestWTF(t *testing.T) {
assert := assert.New(t)
url := base64.URLEncoding
@ethanfrey
ethanfrey / keybase.md
Last active May 24, 2019 16:21
keybase proof

Keybase proof

I hereby claim:

  • I am ethanfrey on github.
  • I am confio (https://keybase.io/confio) on keybase.
  • I have a public key ASABnwVRWAO3cYEeKxQq0tA5AIP8R0-VaNba6X3NzEc71go

To claim this, I am signing this object:

@ethanfrey
ethanfrey / utf8_server.py
Last active March 26, 2021 02:07
Simple asyncio web server with utf-8 output
"""
Simple http server to create streams for asyncio tests
"""
import asyncio
import aiohttp
from aiohttp import web
async def get_data(host, port):
url = 'http://{}:{}/'.format(host, port)