Skip to content

Instantly share code, notes, and snippets.

View Bashorun97's full-sized avatar
🏠
Working from home

Bash Bashorun97

🏠
Working from home
  • @gandalf-gate
  • Lagos, Nigeria
View GitHub Profile
@Zearin
Zearin / python_decorator_guide.md
Last active March 30, 2024 12:28
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@yungwarlock
yungwarlock / 0main.md
Created August 16, 2019 17:54 — forked from pandeiro/0main.md
Git Best Practices

Git Best Practices

This is a fairly common question, and there isn't a One True Answer, but still, this represents a consensus from #git

Read about git

Knowing where to look is half the battle. I strongly urge everyone to read (and support) the Pro Git book. The other resources are highly

@josue
josue / urlheaders.go
Created June 30, 2017 04:20
Golang - Get HTTP headers from given string, and/or the value from specific header key
package main
import (
"log"
"net/http"
"strings"
)
/*
Returns a map array of all available headers.