Skip to content

Instantly share code, notes, and snippets.

View fferrin's full-sized avatar

Facundo Ferrín fferrin

  • Amazon
  • Vancouver, Canada
View GitHub Profile
@fferrin
fferrin / neuromancer.c
Last active December 3, 2023 09:18
Neuromancer logo for OLED display
/*
* GLCD Font for Corne Keyboard Display
* File: glcdfont.c
* Author: Facundo Ferrín
*
* This font is inspired by the cyberpunk aesthetics of the book "Neuromancer" by William Gibson
* and was created based on an image found on Reddit.
*
* Everyone is free to use, modify, and distribute this font without any restrictions.
re*/
[alias]
co = checkout
d = diff
difflast = diff HEAD~1 HEAD
difflastname = diff --name-only HEAD~1 HEAD
b = branch
cm = commit -m
cmn = commit --no-verify -m
s = status
st = stash
@fferrin
fferrin / python_endpoint_profile.md
Last active February 25, 2020 13:28
Profile Django / Flask endpoints.

Install line_profiler

pip install line_profiler

To enable @profile decorator you need to run your code using kernprof script. According to the documentation:

kernprof will create an instance of LineProfiler and insert it into the __builtins__