Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sijan Gurung sijangurung

🎯
Focusing
View GitHub Profile
View ReactNative-Deep-Dive.md
@sijangurung
sijangurung / HttpHandler.java
Last active Apr 21, 2017
Consuming JSON data in Android ( primitive way)
View HttpHandler.java
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;
View PermissionManager.kt
/**
* Created by Sijan Gurung.
* Shortcut AS
* sijan.gurung@shortcut.no
*/
class PermissionsManager {
private val REQUEST_CODE = 333
private val TAG = PermissionsManager::class.java.simpleName
View RecyclerviewAdapter_Dynamicdata.kt
#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}>() {
View RecyclerViewAdapter.kt
#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 Apr 28, 2016 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md