Skip to content

Instantly share code, notes, and snippets.

View anandpdoshi's full-sized avatar

Anand Doshi anandpdoshi

View GitHub Profile
@anandpdoshi
anandpdoshi / index.html
Last active September 18, 2019 01:06
Interactive Sine Wave using PaperJS
<!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>
startdev() {
mysql.server start
}
stopdev() {
mysql.server stop
}
# git
alias gs="git status -s"
@anandpdoshi
anandpdoshi / monitor.py
Created February 24, 2016 07:41
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
anandpdoshi / test-transactions.md
Last active October 20, 2015 06:48
ERPNext Test Plan via UI

DocTypes

Accounts - Account
Accounts - Accounts Settings
Accounts - Bank Reconciliation
Accounts - Budget Distribution
Accounts - C-Form
Accounts - Chart of Accounts
Accounts - Cost Center
@anandpdoshi
anandpdoshi / gitall.py
Last active August 29, 2015 13:57
Git All
#!/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))
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 March 28, 2020 14:22
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"]}})
{
"Andaman and Nicobar Islands": {
"Andaman and Nicobar Islands": []
},
"Andhra Pradesh": {
"Adilabad": [
"Sirpur",
"Asifabad",
"Khanapur",
"Adilabad",
@anandpdoshi
anandpdoshi / install_erpnext.py
Last active February 25, 2016 01:05
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):
install_pre_requisites()
@anandpdoshi
anandpdoshi / impress.js
Last active February 6, 2017 15:36
ERPNext Open Day - June 2013 - by Anand Doshi
/**
* 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 December 18, 2015 00:29
ERPNext - Open Day - May 2013 - Anand Doshi
/*
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,