Skip to content

Instantly share code, notes, and snippets.

View Alafazam's full-sized avatar

Alaf Azam Khan Alafazam

View GitHub Profile
@Alafazam
Alafazam / map.geojson
Last active December 11, 2015 12:32
A geojson with different values of alpha and stroke-width
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Alafazam
Alafazam / sample_for_style.geojson
Last active December 4, 2015 19:36
Sample gIst for styling in GEOJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Alafazam
Alafazam / map.geojson
Last active December 1, 2015 08:47
A demo geojson having MultiPoint.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Alafazam
Alafazam / NIT.geojson
Last active November 8, 2015 22:08
NIT Srinagar in GeoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Alafazam
Alafazam / app.py
Last active August 29, 2015 14:25 — forked from vgoklani/app.py
Using Flask to output Python data to High Charts
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index(chartID = 'chart_ID', chart_type = 'bar', chart_height = 350):
chart = {"renderTo": chartID, "type": chart_type, "height": chart_height,}
series = [{"name": 'Label1', "data": [1,2,3]}, {"name": 'Label2', "data": [4, 5, 6]}]
title = {"text": 'My Title'}
@Alafazam
Alafazam / io.cpp
Last active August 29, 2015 14:25
/*
grab the whole line
char a[100];
cin.getline(a,100);
scanf("%[^\n]",a);
gets(a);
*/
inline void fastRead_int(int *a)
{