Skip to content

Instantly share code, notes, and snippets.

View AMEYCHAVAN's full-sized avatar

Amey Chavan AMEYCHAVAN

View GitHub Profile
@AMEYCHAVAN
AMEYCHAVAN / 20 phrases for closing an email
Created October 23, 2019 07:11
20 phrases for closing an email
# 20 phrases for closing an email
Expressions for thanking
Thank you for your help. / time / assistance / support
I really appreciate the help. / time / assistance / support you’ve given me.
Thank you once more for your help in this matter.
Expressions with a future focus
@AMEYCHAVAN
AMEYCHAVAN / OptimalRentForHRAIndia.js
Last active June 3, 2019 07:00
Find optimal rent for best tax benefit
//https://jsbin.com/zukibezida/edit?output
// bs: Basic Salary payslip PerMonth ,hra : hra paid in payslip PerMonth
bs = 50000
hra = 30000
console.log("[50percent of Basic Salary,HRA received,Excess of Rent paid over 10 percent of salary ")
//console.log("if Rent paid>>",i,p,">>max allowd>>>." ,p.min())
console.log(calc(bs, hra))
@AMEYCHAVAN
AMEYCHAVAN / psql_useful_stat_queries.sql
Created January 30, 2019 08:51 — forked from anvk/psql_useful_stat_queries.sql
List of some useful Stat Queries for PSQL
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB.
------------
-- Basics --
------------
-- Get indexes of tables
<html>
<head>
<title>Demo shop</title>
<script src="https://api-test.wirecard.com/engine/hpp/paymentPageLoader.js" type="text/javascript"></script>
@AMEYCHAVAN
AMEYCHAVAN / pm2-linux.txt
Last active December 10, 2018 04:32
pm2-linux.txt
-
sudo apt-get install build-essential
sudo npm install -g pm2
[
{
"Date": "30-Dec-16",
"Open": 782.75,
"High": 782.78,
"Low": 770.41,
"Close": 771.82,
"Volume": "1769950"
},
{
@AMEYCHAVAN
AMEYCHAVAN / expresscluster.js
Created August 28, 2016 08:33
expresscluster.js
var cluster = require('cluster');
if(cluster.isMaster) {
var numWorkers = require('os').cpus().length;
console.log('Master cluster setting up ' + numWorkers + ' workers...');
for(var i = 0; i < numWorkers; i++) {
cluster.fork();
}
@AMEYCHAVAN
AMEYCHAVAN / merabill.js
Created July 8, 2016 07:02
merabill.js
/*
Candidate Name:_________________________
B2X |Developer Interview | ProGram Test-1
Story:
Some friends goto a restaurant for lunch.
They Eat..They get bill.
calculate the 'share' each has to pay.
Each will pay only for items he has Consumed.
@AMEYCHAVAN
AMEYCHAVAN / Interactive updating to npm-check with support for global.
Created July 5, 2016 10:18
Interactive updating to npm-check with support for global.
Interactive updating to npm-check with support for global.
It also includes links to the source for each updated package so you can find out what's new.
Behind the scenes npm-check uses npm install thanks to the recommendation from @othiym23 in this thread.
# install
npm -g i npm-check
# interactive update of global packages
@AMEYCHAVAN
AMEYCHAVAN / node soap example.js
Last active July 5, 2016 13:41
node soap example
var soap = require('soap');
var url = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL';
var args = {
name: 'value'
};
data = {
'ZIP': 37188
}