Skip to content

Instantly share code, notes, and snippets.

View riverfor's full-sized avatar

River Yan riverfor

View GitHub Profile
h1 {
text-align:center;
}
p {
background-color: rgba(255, 0, 0, 0.5);
color: white;
text-align: justify;
}
@riverfor
riverfor / Permission.java
Created July 30, 2017 06:21 — forked from droibit/Permission.java
Helper class for runtime permission of Android M
import android.Manifest;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.support.annotation.NonNull;
@riverfor
riverfor / 0_reuse_code.js
Created July 24, 2017 02:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console