Skip to content

Instantly share code, notes, and snippets.

View aalmiramolla's full-sized avatar
👨‍💻
Working hard!

Alejandro aalmiramolla

👨‍💻
Working hard!
View GitHub Profile
@aalmiramolla
aalmiramolla / Flask-SqlAlchemy-Many-to-Many.py
Created August 4, 2018 16:40 — forked from kphretiq/Flask-SqlAlchemy-Many-to-Many.py
A (hopefully) simple demo of how to do many-to-many relationships using Flask-SQLAlchemy
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from flask import Flask, url_for
from flask_sqlalchemy import SQLAlchemy
"""
Flask-SQLAlchemy many-to-many relationship using helper table
http://flask-sqlalchemy.pocoo.org/2.1/models/
Hippies love their dogs.
@aalmiramolla
aalmiramolla / traceroute.py
Last active June 26, 2024 09:09 — forked from inaz2/traceroute.py
Python implementation of traceroute
# references:
# Learning by doing: Writing your own traceroute in 8 easy steps (Ksplice Blog)
# https://blogs.oracle.com/ksplice/entry/learning_by_doing_writing_your
# Edited by: Alejandro Almira <laboral at alejandroalmira.com>
import datetime
import socket
import sys