Skip to content

Instantly share code, notes, and snippets.

View sijangurung's full-sized avatar
🎯
Focusing

Sijan Gurung sijangurung

🎯
Focusing
View GitHub Profile
@sijangurung
sijangurung / ReactNative-Deep-Dive.md
Created January 29, 2020 09:05 — forked from nsimmons/ReactNative-Deep-Dive.md
ReactNative Deep Dive
@sijangurung
sijangurung / HttpHandler.java
Last active April 21, 2017 08:57
Consuming JSON data in Android ( primitive way)
package com.example.sijangurung.jsontest;
import android.util.Log;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
/**
* Created by Sijan Gurung.
* Shortcut AS
* [email protected]
*/
class PermissionsManager {
private val REQUEST_CODE = 333
private val TAG = PermissionsManager::class.java.simpleName
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
#parse("File Header.java")
class ${NAME} (var items: MutableList<${ITEM_CLASS}>, val itemClick: (${ITEM_CLASS}) -> Unit) : RecyclerView.Adapter<${NAME}.${VIEWHOLDER_CLASS}>() {
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
#parse("File Header.java")
class ${NAME} (val items: List<${ITEM_CLASS}>, val itemClick: (${ITEM_CLASS}) -> Unit) : RecyclerView.Adapter<${NAME}.${VIEWHOLDER_CLASS}>() {
@sijangurung
sijangurung / introrx.md
Created April 28, 2016 13:33 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing