Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View simplekjl's full-sized avatar
🎯
Focusing

Jose Luis Crisostomo simplekjl

🎯
Focusing
  • Berlin, Germany
View GitHub Profile

1. Store api keys in a xml file

Put xml file "api_keys.xml" in the directory "res/value/".

api_keys.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="THE_MOVIE_DB_API_TOKEN">XXXXX</string>
</resources>
@simplekjl
simplekjl / partner-enrollment.md
Created June 22, 2019 15:55 — forked from damaneice/partner-enrollment.md
How to deliver GitHub Education benefits to your students

How to deliver GitHub Education benefits to your students

Students at your school can quickly claim their GitHub Education benefits by visiting a unique web address. By visiting that address, GitHub will verify the student's academic status with your school and instantly deliver their benefits to them.

Your school can create a unique web address for each student by including three things in it:

  1. school_id: Your school’s unique identifier, provided by GitHub.

  2. student_id: The individual student’s unique identifier, defined by your school.

@simplekjl
simplekjl / RxImmediateSchedulerRule.kt
Created June 11, 2019 06:01 — forked from starkej2/RxImmediateSchedulerRule.kt
RxJava Immediate Scheduler Test Rule
/**
* Replaces the default RxJava schedulers with a synchronous one.
*/
class RxImmediateSchedulerRule : TestRule {
private val immediateScheduler = object : Scheduler() {
@NonNull
override fun scheduleDirect(@NonNull run: Runnable, delay: Long, @NonNull unit: TimeUnit): Disposable {
// Hack to prevent stack overflows in unit tests when scheduling with a delay;
return super.scheduleDirect(run, 0, unit)
}
@simplekjl
simplekjl / CardSwingAnimations.md
Created March 14, 2019 01:14 — forked from sheharyarn/CardSwingAnimations.md
Swing Animations for CardViews in Android

SwingUp Animations for Android

I use these snippets to implement Google Now Card appear-animations on Android. Add these two files to your res/anim/ folder and add a swing_anim_time integer to your values:

<!-- res/values/strings.xml -->
<integer name="swing_anim_time">750</integer>