Skip to content

Instantly share code, notes, and snippets.

View InFog's full-sized avatar
🤔
Thinking

Evaldo Bento InFog

🤔
Thinking
View GitHub Profile
@michellesanver
michellesanver / socials.md
Last active November 19, 2015 16:28
Conference socials in bars: How culture doesn't match comfort

I was hesitant as to whether or not to publish this, but in an act to create awareness in a community where some people, including me, are left uncomfortable and no one notices, I decided to go ahead. Feel free to share your experiences too, to further spread awareness in our community, because awareness is the first step.

I noticed that I started being more and more reserved the more events I went to rather than the other way around. This worried me and I was up until late hours thinking, why is that?

What happens at the events may be part of that, so here I'm sharing to create awareness. Bear in mind that this is only a handful of things that happened to me at conference socials, to give you an idea as to why I'm nowadays inclined to only hangout with the people I know, or skip the conference socials all together.

When you notice that behaviour from me remember that: It's not you, it's me, feel free to say hi but please understand why I may be a bit shy at first.

Disclaimer: I didn’t repor

@barraponto
barraponto / Copa2014.py
Last active May 20, 2016 02:32 — forked from fmasanori/Copa2014.py
Pythonic sum of 2014 World Cup spendings
# coding: utf-8
from urllib.request import urlopen
from xml.etree import ElementTree
class Budget(object):
'''2014 World Cup budget parser.'''
def __init__(self, data_url):
'''Parses XML from data_url.'''

Serving Flask under a subpath

Your Flask app object implements the __call__ method, which means it can be called like a regular function. When your WSGI container receives a HTTP request it calls your app with the environ dict and the start_response callable. WSGI is specified in PEP 0333. The two relevant environ variables are:

SCRIPT_NAME
The initial portion of the request URL's "path" that corresponds to the application object, so that the application knows its virtual "location". This may be an empty string, if the application corresponds to the "root" of the server.

@vasanthk
vasanthk / System Design.md
Last active June 15, 2024 21:43
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?