Skip to content

Instantly share code, notes, and snippets.

View get_unused_tcp_port.py
def get_unused_tcp_port():
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(('', 0))
addr = s.getsockname()
s.close()
return addr[1]
View minutes_python_express.txt
pythonExpress
- 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: http://pychill.fossevents.in/
- problems:
- no central location
- unreliable turnouts.
-
@bhanuvrat
bhanuvrat / frameworks.json
Last active Oct 3, 2015
popular-web-frameworks
View frameworks.json
{
"data": [
{
"description": "The Web framework for perfectionists with deadlines.",
"forks_count": 5874,
"homepage": "https://www.djangoproject.com/",
"html_url": "https://github.com/django/django",
"language": "Python",
"name": "django",
"open_issues_count": 93,
@bhanuvrat
bhanuvrat / flask_print_post.py
Last active Jan 1, 2016
simple flask script to print whatever is posted to it.
View flask_print_post.py
from flask import Flask, request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
data = request.data or request.form
print '*'*40
print data
print '*'*40
You can’t perform that action at this time.