Skip to content

Instantly share code, notes, and snippets.

View pankajksharma's full-sized avatar

Pankaj Kumar Sharma pankajksharma

View GitHub Profile
@pankajksharma
pankajksharma / README
Created March 3, 2015 07:23
MCC MNC codes
Provides a list of countries and network for given mcc and mnc.
Steps I used:
Opened http://join.agiliq.com/oauth/app_authorize/?client_secret=<client_secrert>&redirect_uri=http%3A%2F%2Flocalhost%2F&client_id=<client_id>
After confirmation, it redirected me to http://localhost/?code=aOyV1p0YZCfgCZq83vZjwZhy7Z0fCb60y6TmaUIzi4cGAJ5a4g
So auth code is <auth_code>.
Access Code is obtained by:
wget --post-data 'grant_type=authorization_code&code=<auth_code>&redirect_uri=http%3A%2F%2Flocalhost%2F&client_id=<lcient_id>&client_secret=<client_secret>' http://join.agiliq.com/oauth/access_token/
#include<stdio.h>
#include<string.h>
#include<math.h>
char input[20][20]; //tac input from file
int lead[10]; //Variable storing leaders
int lc=0; //Leader Count
int ic=0; //Input line count
@pankajksharma
pankajksharma / gist:5498536
Created May 1, 2013 21:29
Trial patch, asked to write with proposal "PTS rewrite in Django".
Index: www/xsl/pts.xsl
===================================================================
--- www/xsl/pts.xsl (revision 2970)
+++ www/xsl/pts.xsl (working copy)
@@ -1185,6 +1185,9 @@
<a name="todo" />
<h2>todo</h2>
<ul>
+ <li>
+ Pankaj Kumar Sharma
@pankajksharma
pankajksharma / config.py
Created March 23, 2013 02:45
Python script to minify js and css. Uses YUI compressor.
#for css and js minification
#dirs = ['<css path>','<Js path>']
dirs = ['/home/om/Development/aadhaar/aadhaarup-auth/static/css',
'/home/om/Development/aadhaar/aadhaarup-auth/static/js'
]