Skip to content

Instantly share code, notes, and snippets.

View bhanuvrat's full-sized avatar

Anuvrat Parashar bhanuvrat

View GitHub Profile
# 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 October 3, 2015 13:54
popular-web-frameworks
{
"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,
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.
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]
@bhanuvrat
bhanuvrat / flask_print_post.py
Last active January 1, 2016 06:19
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 = request.data or request.form
print '*'*40
print data
print '*'*40