Skip to content

Instantly share code, notes, and snippets.

Anand Doshi anandpdoshi

Block or report user

Report or block anandpdoshi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
anandpdoshi / index.html
Last active Sep 18, 2019
Interactive Sine Wave using PaperJS
View index.html
<!DOCTYPE html>
<!-- Load the Paper.js library -->
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<!-- Define inlined PaperScript associate it with myCanvas -->
<script type="text/paperscript" src="sine.js" data-paper-canvas="myCanvas"></script>
View .zshrc
startdev() {
mysql.server start
stopdev() {
mysql.server stop
# git
alias gs="git status -s"
anandpdoshi /
Created Feb 24, 2016
Site monitoring using python multi-processing
import requests
from multiprocessing import Pool
import time
def monitor(server_sites):
start_time = time.time()
pool = Pool(processes=10)
results = []
for server, sites in server_sites.items():
anandpdoshi /
Last active Oct 20, 2015
ERPNext Test Plan via UI


Accounts - Account
Accounts - Accounts Settings
Accounts - Bank Reconciliation
Accounts - Budget Distribution
Accounts - C-Form
Accounts - Chart of Accounts
Accounts - Cost Center
#!/usr/bin/env python2.7
import sys, os
import subprocess, commands
def main():
for folder in os.listdir("."):
if os.path.exists(os.path.join(folder, ".git")):
git = commands.getoutput('which git')
print subprocess.check_output([git] + sys.argv[1:], cwd=os.path.abspath(folder))
View list_of_lok_sabha_constituencies.csv
State Number State Constituency Number Constituency Extent in terms of Assembly Constituencies Reservation
1 Andhra Pradesh 1 Adilabad Sirpur, Asifabad, Khanapur, Adilabad, Boath, Nirmal, Mudhole ST
2 Peddapalle Chennur, Bellampalli, Mancherial, Dharmapuri, Ramagundam, Manthani, Peddapalle SC
3 Karimnagar Karimnagar, Choppadandi, Vemulawada, Sircilla, Manakondur, Huzurabad, Husnabad
4 Nizamabad Armur, Bodhan, Nizamabad (Urban), Nizamabad (Rural), Balkonda, Koratla, Jagtial
5 Zahirabad Jukkal, Banswada, Yellareddy, Kamareddy, Narayankhed, Andole, Zahirabad
6 Medak Siddipet, Medak, Narsapur, Sangareddy, Patancheru, Dubbak, Gajwel
7 Malkajgiri Medchal, Malkajgiri, Qutbullapur, Kukatpalle, Uppal, Lal Bahadur Nagar, Secunderabad Cantt.
8 Secunderabad Musheerabad, Amberpet, Khairatabad, Jubilee Hills, Sanathnagar, Nampally, Secunderabad
9 Hyderabad Malakpet, Karwan, Goshamahal, Charminar, Chandrayangutta, Yakutpura, Bahadurpura
anandpdoshi / constituencies.json
Last active Jan 2, 2016
List of Constituencies of India by State (Reference:, Date: 2014-01-04, Sanitized, Format = {"State": {"Constituency": ["Assembly Segments"]}})
View constituencies.json
"Andaman and Nicobar Islands": {
"Andaman and Nicobar Islands": []
"Andhra Pradesh": {
"Adilabad": [
anandpdoshi /
Last active Feb 25, 2016
ERPNext Install script
#!/usr/bin/env python
from __future__ import unicode_literals
import os, sys
apache_user = None
is_redhat = is_debian = None
root_password = None
def install(install_path=None):
anandpdoshi / impress.js
Last active Feb 6, 2017
ERPNext Open Day - June 2013 - by Anand Doshi
View impress.js
* impress.js
* impress.js is a presentation tool based on the power of CSS3 transforms and transitions
* in modern browsers and inspired by the idea behind
* Copyright 2011-2012 Bartek Szopka (@bartaz)
* Released under the MIT and GPL Licenses.
anandpdoshi / 2013_05.css
Last active Dec 18, 2015
ERPNext - Open Day - May 2013 - Anand Doshi
View 2013_05.css
/* Reset Stylesheet
Last Updated: 2010-09-17
Author: Richard Clark -
Twitter: @rich_clark
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
You can’t perform that action at this time.