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
anandpdoshi / index.html
Last active Sep 18, 2019
Interactive Sine Wave using PaperJS
View index.html
<!DOCTYPE html>
<html>
<head>
<!-- Load the Paper.js library -->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.25/paper-full.min.js"></script>
<!-- Define inlined PaperScript associate it with myCanvas -->
<script type="text/paperscript" src="sine.js" data-paper-canvas="myCanvas"></script>
</head>
<body>
View .zshrc
startdev() {
mysql.server start
}
stopdev() {
mysql.server stop
}
# git
alias gs="git status -s"
@anandpdoshi
anandpdoshi / monitor.py
Created Feb 24, 2016
Site monitoring using python multi-processing
View monitor.py
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
anandpdoshi / test-transactions.md
Last active Oct 20, 2015
ERPNext Test Plan via UI
View test-transactions.md

DocTypes

Accounts - Account
Accounts - Accounts Settings
Accounts - Bank Reconciliation
Accounts - Budget Distribution
Accounts - C-Form
Accounts - Chart of Accounts
Accounts - Cost Center
View gitall.py
#!/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')
try:
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
anandpdoshi / constituencies.json
Last active Jan 2, 2016
List of Constituencies of India by State (Reference: http://en.wikipedia.org/wiki/List_of_Constituencies_of_the_Lok_Sabha, Date: 2014-01-04, Sanitized, Format = {"State": {"Constituency": ["Assembly Segments"]}})
View constituencies.json
{
"Andaman and Nicobar Islands": {
"Andaman and Nicobar Islands": []
},
"Andhra Pradesh": {
"Adilabad": [
"Sirpur",
"Asifabad",
"Khanapur",
"Adilabad",
@anandpdoshi
anandpdoshi / install_erpnext.py
Last active Feb 25, 2016
ERPNext Install script
View install_erpnext.py
#!/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):
install_pre_requisites()
@anandpdoshi
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 prezi.com.
*
*
* Copyright 2011-2012 Bartek Szopka (@bartaz)
*
* Released under the MIT and GPL Licenses.
@anandpdoshi
anandpdoshi / 2013_05.css
Last active Dec 18, 2015
ERPNext - Open Day - May 2013 - Anand Doshi
View 2013_05.css
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
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.