Skip to content

Instantly share code, notes, and snippets.

View regiszanandrea's full-sized avatar

Regis Zanandrea regiszanandrea

View GitHub Profile
@drgomesp
drgomesp / beyond-the-basics-of-go-http-handlers.md
Last active January 8, 2021 16:39
beyond-the-basics-of-go-http-handlers.md

Beyond the Basics of Go - HTTP Handlers

http.Handler and http.HandlerFunc

The Go standard library defines two main components for dealing with incoming HTTP requests: the http.Handler type and the http.HandlerFunc type. While http.Handler is an actual interface,

type Handler interface {
	ServeHTTP(ResponseWriter, *Request)
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 23, 2024 04:22
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@sterlingwes
sterlingwes / tourney.html
Created December 3, 2012 23:42
Tournament Bracket Generator (Javascript + CSS, no tables)
<!DOCTYPE html>
<html>
<head>
<title>Tournament Bracket Generator</title>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script>
$(document).on('ready', function() {
var knownBrackets = [2,4,8,16,32], // brackets with "perfect" proportions (full fields, no byes)