Skip to content

Instantly share code, notes, and snippets.

View buildbro's full-sized avatar

Pius Aboyi Ea buildbro

View GitHub Profile
@warlock
warlock / app.json
Created June 20, 2019 13:25
App.json Expo Example Android And iOS permission examples
{
"expo": {
"name": "appname",
"slug": "appslug",
"privacy": "unlisted",
"sdkVersion": "32.0.0",
"platforms": [ "ios", "android" ],
"version": "2.0.36",
"orientation": "portrait",
"icon": "./assets/icon.png",
@MeNiks
MeNiks / RealPathUtil.kt
Last active April 29, 2024 22:08
Kotlin code to get real path / sd card path from intent data while browsing file.
import android.annotation.SuppressLint
import android.content.ContentUris
import android.content.Context
import android.content.CursorLoader
import android.database.Cursor
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.provider.DocumentsContract
import android.provider.MediaStore
@sheharyarn
sheharyarn / SimpleRVAdapter.java
Last active February 9, 2021 10:11
Simple Recycler View adapter (without XML layout)
/**
* SimpleRVAdapter to quickly get started with simple Lists in Recyclerview
*
* Usage:
*
* RecyclerView rv = (RecyclerView)findViewById(R.id.rv);
* rv.setLayoutManager(new LinearLayoutManager(getContext()));
* rv.setAdapter(new SimpleRVAdapter(new String[] {"1", "2", "3", "4", "5", "6", "7"}));
*
* @author Sheharyar Naseer
@qutek
qutek / parse_path.php
Last active February 2, 2020 12:09
[PHP][htaccess] Parse path from Clean URL (Prety Permalink)
<?php
/**
* parse path to get from clean URL
* @return [array] [array of requested uri]
*/
function parse_path() {
$path = array();
if (isset($_SERVER['REQUEST_URI'])) {
$request_path = explode('?', $_SERVER['REQUEST_URI']);