This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |