Skip to content

Instantly share code, notes, and snippets.

Noman Rafique nomanr

Block or report user

Report or block nomanr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nomanr
nomanr / introrx.md
Created Aug 27, 2018 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
@nomanr
nomanr / gist:cb43eda486a562f879784e29b2a7e683
Created Jul 11, 2018 — forked from khakimov/gist:3558086
Matrix Effect in you terminal
View gist:cb43eda486a562f879784e29b2a7e683
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}'
@nomanr
nomanr / CounterExampleActivity.java
Last active Jul 17, 2019
A simple Android class that can start continuous counter when pressed and hold on a view.
View CounterExampleActivity.java
package noman.counterhelper;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
/**
* Created by Noman on 11/8/2016.
*/
@nomanr
nomanr / AndroidManifest.xml
Created Feb 10, 2016 — forked from bjoernQ/AndroidManifest.xml
Creating a System Overlay (Always on Top over all Apps) in Android
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.mobilej.overlay"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application android:label="SystemOverlay" >
<activity
@nomanr
nomanr / AccessStorageApi
Created Jan 29, 2016 — forked from prasad091/AccessStorageApi
Access Storage In Android KITKAT
View AccessStorageApi
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
You can’t perform that action at this time.