Skip to content

Instantly share code, notes, and snippets.

def get_unused_tcp_port():
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('', 0))
addr = s.getsockname()
return addr[1]
View minutes_python_express.txt
- Aniket:
- great initiative.
- been to many colleges, helped people out.
- earlier it was in Anand's repo.
- unaccepted pull requests.
- Anuvrat:
- get content standardized, a guideline for instructors to follow.
View pycon_meetup_minutes.txt
# minutes of discussion: local user groups: problems and success stories.
@ Delhi: Satya
- regular meetups happening since past few months.
- format: 1 workshop 1 talk in 6 hrs every alternate saturday.
- summer school events:
- problems:
- no central location
- unreliable turnouts.
bhanuvrat / frameworks.json
Last active Oct 3, 2015
View frameworks.json
"data": [
"description": "The Web framework for perfectionists with deadlines.",
"forks_count": 5874,
"homepage": "",
"html_url": "",
"language": "Python",
"name": "django",
"open_issues_count": 93,
bhanuvrat /
Last active Jan 1, 2016
simple flask script to print whatever is posted to it.
from flask import Flask, request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
data = or request.form
print '*'*40
print data
print '*'*40
You can’t perform that action at this time.