Skip to content

Instantly share code, notes, and snippets.

View shanzantrik's full-sized avatar

Shantanu Goswami shanzantrik

View GitHub Profile
<!--So the script below is working absolutely fine. All you need to do is fill up the array with post ids which are in classic editor
and then paste localStorage.setItem('gutenberg_post_index', 0);
in the console and refresh the page id or the complete url on edit post page. Then it will start working and converting the remaining
posts.-->
// ==UserScript==
// @name Classic to Block Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
@shanzantrik
shanzantrik / Python Code Snippets.py
Created July 4, 2017 07:20
Python Code Snippets created by ShantanuMain - https://repl.it/JMco/0
loan_amount = input("Enter Loan Amount")
interest_rate = input("Enter Interest Percentage")
no_of_payments = input("Enter No. of Payments you want to make")
L = float(loan_amount)
i = float(interest_rate)
n = int(no_of_payments)
monthly_install = L*(i*(1+i)*n)/((1+i)*n-1)
print ("Your Monthly Installment Amount is %.2f" % monthly_install)