Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View neoecos's full-sized avatar

Sebastian Ortiz neoecos

View GitHub Profile
@neoecos
neoecos / keybase.md
Last active August 29, 2015 14:22
keybase.md

Keybase proof

I hereby claim:

  • I am neoecos on github.
  • I am neoecos (https://keybase.io/neoecos) on keybase.
  • I have a public key whose fingerprint is D2DB 6008 6233 E827 29DB 349B 1DA7 8D2D D9BA DD59

To claim this, I am signing this object:

@neoecos
neoecos / Transmilenio_GraphGist.adoc
Last active October 9, 2015 12:10
GraphGist For TransMilenio Bogotá

TransMilemio Bogota Bus Rapid Service

TransMilenio is a Bus Rapid Service wich serves Bogotá City in Colombia, Bogotá metropolitan area has about 9 million population, and have been famous in the country for the horrorific traffic jams. TransMilenio is used to move a massive amount of people every day to get from the suburbs to the centric areas, where people works and does everyday duties as going to bank.

@neoecos
neoecos / import_colombia_divipola.py
Created September 12, 2013 01:00
Power of python dynamic classes
def find_or_create_entity_with_data(*args, **kwargs):
cls_entity_data = args[0] if len(args) > 0 else None
cls_entity = None
if cls_entity_data is not None and issubclass(cls_entity_data, CaliopeEntityData):
cls_entity = cls_entity_data.entity_type
if cls_entity is not None:
code = kwargs['code'] if 'code' in kwargs else None
if code is not None:
data_entities = cls_entity_data.index.search(code=code)
if len(data_entities) == 0: