Skip to content

Instantly share code, notes, and snippets.

View Alafazam's full-sized avatar

Alaf Azam Khan Alafazam

View GitHub Profile
@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)
{
@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 / 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 / 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 / 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 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 / 0_reuse_code.js
Created December 11, 2015 12:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Alafazam
Alafazam / gist:09a44faa01cd8fb16120
Created December 31, 2015 21:21 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@Alafazam
Alafazam / comparison.md
Last active January 3, 2016 13:10
Comparison between different hosting providers

Comparison between different hosting providers

Service Provider Plan cost RAM Storage CPU
Digital Ocean $80/ mo 8GB 80GB SSD 4 cores
Linode $80/ mo 8GB 192GB SSD 6 cores
Hostgater $89.95/mo 2GB 120GB 2 cores
a_small_orange $90*/mo 6GB 150GB 6 cores
@Alafazam
Alafazam / Bubbly....markdown
Last active February 20, 2016 07:53 — forked from anonymous/Bubbly....markdown
Bubbly...