Skip to content

Instantly share code, notes, and snippets.

View milon87's full-sized avatar
🎯
Focusing

Din Islam milon87

🎯
Focusing
  • TopUp Limited
  • Dhaka
View GitHub Profile
@milon87
milon87 / api.js
Created September 9, 2017 07:17
separating http call from ui logic and back to result
export function getvals(url){
return fetch(url,
{
method: "GET",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
})
.then((response) => response.json())
@milon87
milon87 / RecycleViewAdapter
Created November 12, 2017 08:01
Generic RecycleView adapter
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
#parse("File Header.java")