Skip to content

Instantly share code, notes, and snippets.

View chetangani's full-sized avatar

Chetan Gani chetangani

  • Bengaluru
View GitHub Profile
@chetangani
chetangani / URLConnection.java
Last active September 28, 2016 10:47
Connecting URL and posting data to server..
public String PostConnection(String value) {
String response = "";
HashMap<String, String> datamap = new HashMap<>();
datamap.put("key", value);
try {
response = UrlPostConnection("URL", datamap);
} catch (IOException e) {
e.printStackTrace();
}
return response;
@chetangani
chetangani / AndroidManifest.xml
Created July 10, 2016 05:51
Login and sign-up (with Email and Google)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.techpalle.karan.doubtlist">
<uses-permission android:name="android.permission.INTERNET" />
<!-- Replace with your own application name -->
<application
android:name=".AppName"
android:allowBackup="true"
@chetangani
chetangani / RecyclerItemClickListener.java
Created July 10, 2016 05:50
Recycler View implementing OnItemTouchListener
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListener {
private OnItemClickListener mListener;
public interface OnItemClickListener {
@chetangani
chetangani / 0_reuse_code.js
Created July 9, 2016 18:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console