Skip to content

Instantly share code, notes, and snippets.

View rmehta's full-sized avatar

Rushabh Mehta rmehta

View GitHub Profile
@rmehta
rmehta / shishuvan_next_steps.md
Last active July 13, 2018 09:31
Shishuvan Next Steps

The resignations of the principal, vice principal and many staff have rattled all parents. Due to parent mobilization, 900 parents have come forward and asked questions.

People are worried what is next? There has been a thought, that there needs to be a representation from the side of the parents, and things coming out in an open forum is a bad thing.

As I have been one of the persons who has come out in the open in support of the Shishuvan Philosophy and the leadership team, staff and teachers, a lot of people want to talk with me. Many people are worried about the public perception of the school and want things to be settled down.

Since I have been having the same conversation again and again on phone, here are my views on what should be next steps:

  1. The Trust must sit with Management, Leadership team and staff and settle the differences to satisfaction of all parties (not involving parents).
  2. After settlement, everyone must address a joint open sabha, outlining steps they have taken to resolve t
  • new-site
  • install app
  • setup wizard
  • home page

Inaugurated in 1969, the National Centre for the Performing Arts (NCPA), Mumbai, is India's premier cultural institution. The first multi-venue, multi-purpose cultural centre to be built in South Asia, it has been committed since its inception to preserving and promoting the country's rich and vibrant heritage of Indian and international music, dance, theatre, film, literature and photography as well as presenting new and innovative work in the field of the performing arts.

  • style
@rmehta
rmehta / gitall.py
Last active July 19, 2017 12:23
Git all
#!/usr/bin/env python2.7
import sys, os
import subprocess, commands
def main():
git = commands.getoutput('which git')
args = sys.argv[1:]
for folder in os.listdir("."):
if os.path.exists(os.path.join(folder, ".git")):
cwd = os.path.abspath(folder)
@rmehta
rmehta / demo_maker.py
Created March 27, 2017 12:18
simple hack to make erpnext demo using selenium and text-to-speech
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from subprocess import Popen
def say(what):
Popen(['say', what, '-v', 'Samantha'])
class Browser(webdriver.Chrome):
def __init__(self):
@rmehta
rmehta / jinja_style_microtemplates.js
Created December 9, 2016 11:29
A simple microtemplating function in Javascript to parse Jinja style tags, for and if statements
// Simple Jinja Style templates in Javascript
// Adapted from microtemplate.js by John Resig
// http://ejohn.org/blog/javascript-micro-templating/
// usage:
// tepmlate_name = "Testing";
// render_template('{% if template_name %}<h1>{{ template_name }}{% endif %}');
var compiled_templates = {};
- simultaneous_sessions = frappe.db.get_value('User', user, 'simultaneous_sessions') or 1
+ limit = 0
+ if user==frappe.session.user:
+ # logging out self
+ # keep my other sessions active
+ simultaneous_sessions = frappe.db.get_value('User', user, 'simultaneous_sessions') or 1
+ limit = simultaneous_sessions - 1
condition = ''
if keep_current:
frappe.ui.form.on('Your DocType', 'button', function(frm) {
frm.set_value('total', frm.doc.value1 + frm.doc.value2 + frm.doc.value3);
});
# $ bench --site yoursitename console
for d in frappe.get_all('Your DocType', filters={'company': old_company}):
doc = frappe.get_doc('Your DocType', d.name)
doc.company = new_company
doc.save()

Petition for mandating use of Free and Open Source in New Education Policy Draft circulated by Government of India

For the first time, the Government of India is embarking on a time-bound grassroots consultative process, which will enable the Ministry of HRD to reach out to individuals across the country through over 2.75 lakh direct consultations while also taking input from citizens online.

Here is the draft policy http://mhrd.gov.in/nep-new

In reference to this, we find it strange that the government has not included the mandate for schools to use Free and Open Source Software. Not only is Free Software cost effective, there are many other benefits.

1. Can you tell us a bit about the company?

We started in 2008 and initially provided custom web app development services, but at heart we were always a product company. In 2010, we finally discovered this and shifted our strategy, we went from a team of 18 to 5 and concentrated on the product. We also started our SAAS offering in 2010 and branded as ERPNext. Since then our focus has been on the product and improving its quality, usability etc. Since last year, we have managed to get some traction and we have now more than 250 paid customers, both SAAS (75%) and open source production support (25%). Also 75% of our revenues come from outside India.

Apart from the product, we have also published an open source web app framework in Python called Frappe (Framework + Apps). It is a full stack Python and JS framework. The unique part of the framework is that unlink other frameworks that either concetrate on server side or client side, Frappe has both parts to it. Also has