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>
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:
school_id
: Your school’s unique identifier, provided by GitHub.
student_id
: The individual student’s unique identifier, defined by your school.
/** | |
* 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) | |
} |
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>