Skip to content

Instantly share code, notes, and snippets.

View laxyapahuja's full-sized avatar

Laxya Pahuja laxyapahuja

View GitHub Profile
import smtplib
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
from email import encoders
import gspread
from oauth2client.service_account import ServiceAccountCredentials
import xlrd

Getting Started to contribute to the Mifos Initiative

Mifos X is an extended platform for delivering the complete range of financial services needed for an effective financial inclusion solution. Mifos X is based on Apache Fineract. Apache Fineract is an open source software for financial services.

Fineract provides a reliable, robust, and affordable solution for entrepreneurs, financial institutions, and service providers to offer financial services to the world’s 2 billion underbanked and unbanked. Fineract is aimed at innovative mobile and cloud-based solutions, and enables digital transaction accounts for all.

Fineract 1.x is a mature platform with open APIs, while Fineract CN is a cloud native, microservice architecture also supporting open banking APIs.

Mifos Mobile CN is based on Apache Fineract CN. Apache Fineract CN is an Application Framework for Digital Financial Services. It is a system to support nationwide financial transactions and to support the creation of an inclusive, interconnected

@laxyapahuja
laxyapahuja / gapi-mail.js
Created July 3, 2019 12:06
GMail API Usage (doc needed)
// Client ID and API key from the Developer Console
var CLIENT_ID = '668438714568-cd8dit8kvrd14tqdl49e3hlmlnlgmdn7.apps.googleusercontent.com';
var API_KEY = 'AIzaSyCL2XxiaMpu6D3z5MqxBLO2cOvdIyDAhiE';
// Array of API discovery doc URLs for APIs used by the quickstart
var DISCOVERY_DOCS = ["https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest"];
// Authorization scopes required by the API; multiple scopes can be
// included, separated by spaces.
var SCOPES = 'https://www.googleapis.com/auth/gmail.readonly';
public class ApiClient {
public static final String BASE_URL = "enter api base url here";
//Insert retrofit dependency in build.gradle
public static Retrofit retrofit;
public static Retrofit getApiClient() {
if (retrofit == null) {
retrofit = new Retrofit.Builder().baseurl(BASE_URL)
@laxyapahuja
laxyapahuja / firebase-signup.java
Created May 20, 2019 08:42
Signing up accounts using Firebase
public void signUp(View view) {
EditText loginet=findViewById(R.id.email);
EditText passwordet=findViewById(R.id.password);
String email=loginet.getText().toString();
String password=passwordet.getText().toString();
mAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
Some code