Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Aniruddh Bhilvare uniruddh

🎯
Focusing
View GitHub Profile
@uniruddh
uniruddh / FTPExample.java
Created Aug 20, 2019 — forked from madan712/FTPExample.java
Java program to upload/download files from remote server
View FTPExample.java
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
@uniruddh
uniruddh / MVP + Interactor example.kt
Created Jun 11, 2018 — forked from marciogranzotto/MVP + Interactor example.kt
This is an example of Android development with MVP + Interactor in Kotlin
View MVP + Interactor example.kt
interface LoginContracts {
interface View {
fun presentHomeScreen(user: User)
fun showError(message: String)
}
interface Presenter {
fun onDestroy()
fun onLoginButtonPressed(username: String, password: String)
}
@uniruddh
uniruddh / VIPER Android Example.kt
Created Jun 11, 2018 — forked from marciogranzotto/VIPER Android Example.kt
This is an example of Android development with VIPER in Kotlin
View VIPER Android Example.kt
interface LoginContracts {
interface View {
fun showError(message: String)
}
interface Presenter {
fun onDestroy()
fun onLoginButtonPressed(username: String, password: String)
}
@uniruddh
uniruddh / Libraries.md
Last active Feb 7, 2017
Android Helpful Libraries
@uniruddh
uniruddh / Utils.java
Last active Mar 15, 2016
Helper class for most important and basic methods for any Android App.
View Utils.java
public class Utils {
/*
* Usage: Check if device have internet connection or not, before communicating with server.
* @param ctx: Context form which this method will be called
* @return Boolean: If internet is available or not.
*/
public static boolean isNetConnected(Context ctx) {
Runtime runtime = Runtime.getRuntime();
try {
@uniruddh
uniruddh / RestService.swift
Last active Jul 8, 2018
Simple Class for making Rest API calls in swift.
View RestService.swift
import Foundation
import UIKit
class RestService{
/**
GET respons from REST API.
:param: reqUrl URL of webservice.
:param: completionHandler callback function, this will called once you get response.
You can’t perform that action at this time.