Skip to content

Instantly share code, notes, and snippets.

View joegasewicz's full-sized avatar
🦧
🍾

Joe Gasewicz joegasewicz

🦧
🍾
View GitHub Profile
@radiac
radiac / uk-counties-to-regions.csv
Last active January 31, 2024 03:18
CSV map of UK counties to regions
County Region
Guernsey Crown Dependencies
IOM Crown Dependencies
Jersey Crown Dependencies
North East Derbyshire East Midlands
Amber Valley East Midlands
Ashfield East Midlands
Bassetlaw East Midlands
Blaby East Midlands
Bolsover East Midlands
@eddieh
eddieh / libevent-v-libuv.md
Last active March 7, 2024 20:33
libevent vs libuv

libevent vs libuv

Comparing libevent and libuv. My upfront biased: I want to like libevent. However, I want to objectively compare the two and make an informed decision.

What versions are we comparing?

  • libevent 2.0.22 (Stable) [2014-01-05]
  • libuv 1.8.0 (Stable) [2015-12-15]
@andrewmilson
andrewmilson / file-upload-multipart.go
Last active April 24, 2024 10:27
Golang multipart/form-data File Upload
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"
@ctokheim
ctokheim / cython_tricks.md
Last active March 4, 2024 23:27
cython tricks

Cython

Cython has two major benefits:

  1. Making python code faster, particularly things that can't be done in scipy/numpy
  2. Wrapping/interfacing with C/C++ code

Cython gains most of it's benefit from statically typing arguments. However, statically typing is not required, in fact, regular python code is valid cython (but don't expect much of a speed up). By incrementally adding more type information, the code can speed up by several factors. This gist just provides a very basic usage of cython.