Skip to content

Instantly share code, notes, and snippets.

View pravj's full-sized avatar
📖

Pravendra Singh pravj

📖
View GitHub Profile
This file has been truncated, but you can view the full file.
var statesData = {
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "ID_0": 105, "ISO": "IND", "NAME_0": "India", "ID_1": 1, "NAME_1": "Andaman and Nicobar", "NL_NAME_1": "", "VARNAME_1": "Andaman & Nicobar Islands|Andaman et Nicobar|Iihas de Andama e Nicobar|Inseln Andamanen und Nikobare", "TYPE_1": "Union Territor", "ENGTYPE_1": "Union Territory", "filename": "", "filename_1": "", "filename_2": "", "filename_3": "", "filename_4": "" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 93.787727, 6.852640 ], [ 93.788490, 6.852571 ], [ 93.789047, 6.852571 ], [ 93.789047, 6.852291 ], [ 93.789673, 6.852291 ], [ 93.789879, 6.852013 ], [ 93.790154, 6.851945 ], [ 93.790642, 6.851667 ], [ 93.790779, 6.851389 ], [ 93.790916, 6.851042 ], [ 93.790504, 6.850625 ], [ 93.790291, 6.850347 ], [ 93.790001, 6.850279 ], [ 93.789482, 6.849903 ], [ 93.789001, 6.849485 ], [ 93.788376, 6.849137 ], [ 93.788017, 6.848720 ], [ 93.787781, 6.848056 ], [ 93.787506, 6.848061 ], [ 93.787216, 6.84
#!/usr/bin/env python
from flask import Flask, request
import logging
LOG_FILE = './log/mailer.log'
logging.basicConfig(filename=LOG_FILE, level=logging.INFO)
app = Flask(__name__)
@app.route('/mailman', methods=['POST'])
@pravj
pravj / README.md
Last active February 10, 2017 14:55
The GitHub around you

Development

  • 1% rule

  • Community detection

  • Topic modeling the community

  • Influence caused by you and on you

  • Journey of a trending repo

  • Lifetime of a repo

  • Friendship Paradox

  • Degree of separation

@pravj
pravj / sample.java
Last active November 8, 2015 18:52
sample java
// price and discount attributes
int actualPrice;
int discountedPrice;
float discountPercentage;
// product identifiers
int productID;
URL productImage;
String productTitle;
@pravj
pravj / design-hints.md
Last active October 23, 2015 05:48
Design hints

There is a sub-section named "Paging"[1] in the "Data API" section. It explains the Metadata in API responses, so I used this for my answer here.

I used Python's "requests" to communicate with the sandbox API. Below, I'm adding the "paging" response I got for both the endpoints, "students" and "sections".

Students {u'current': 1, u'count': 1004, u'total': 11}

Sections

@pravj
pravj / gophericons.md
Last active August 29, 2015 14:14
Projects icons that uses gopher
  • Revel
    • Revel
  • gobot
    • gobot
  • goblin
  • goblin
@pravj
pravj / Quora-GitHub.md
Last active August 29, 2015 14:13
Quora GitHub
  • repositories showing 404 : may be they have shifted to new home
  • repositories showing 403 : disabled by GitHub staff
  • repositories having stars but 0 languages detected
@pravj
pravj / ospi-layout.md
Last active August 29, 2015 14:12
content layout of the open source presence infographic

Motive

  • Why did I work on this?
    • R and ggplot
    • Amod malviya's yourstory interview

Abstract

  • What will be the content of this?