Skip to content

Instantly share code, notes, and snippets.

View raviprakashgiri's full-sized avatar

ravi prakash giri raviprakashgiri

  • San Francisco, US
View GitHub Profile
@raviprakashgiri
raviprakashgiri / bar_graph.py
Created January 15, 2015 06:05
Script to create a simple Bar Graph of very large data using python plotly library.
import plotly.plotly as py
from plotly.graph_objs import *
# auto sign-in with credentials or use py.sign_in()
a=10
b=22
c=33
trace1 = Bar(
x=[1,2,3],y=[a,b,c]
)
@raviprakashgiri
raviprakashgiri / csv_extract.py
Created January 15, 2015 05:57
Python script for extracting any particular column value from a csv or txt files.
# data.csv entries
# r,first,c,f,last,h,k
# 1,1957154100,T,37809,8721867,P,200
# 2,15393876652,T,289998,35330317,P,199
# 3,13971080937,T,270583,113047,P,3
# 4,345103649,T,5752,45936,P,1
# 5,151604200,T,2939,94215,P,2
# 6,251593100,T,4980,66352,P,2
# 7,151784831,T,2975,80168,P,2
#!/bin/bash
# Author : Akshay Pratap Singh
# Email-id : pratapakshay0@gmail.com
# These variable are sets by user
SERVER_IP="127.0.0.1"
HOST_NAME="example.com"
DIR_PATH=$(pwd)
APACHE_DIR_PATH="/etc/apache2/sites-available"
/******** All Required Header Files ********/
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <queue>
#include <deque>
#include <bitset>