Skip to content

Instantly share code, notes, and snippets.

View Ben834's full-sized avatar

Benjamin Duvivier Ben834

View GitHub Profile
@Ben834
Ben834 / youtube-genre-fonctions.java
Created May 10, 2016 13:17
Java functions for retrieving the genre information
private static final String MUSIC_CHANNEL_ID = "UC-9-kyTW8ZkZNDHQJ6FgpwQ";
/**
* Save the genre channels information in a json file. A filtered version is also saved
* alongside the default one. The genre playlist have to been generated for being able
* to produce the filtered version.
*
* @param youtube : A {@link YouTube} for making the youtube requests
*/
static void saveGenreChannelsInfo(YouTube youtube) throws IOException {
@Ben834
Ben834 / EditTextHasError.java
Created January 25, 2016 14:35
Espresso matchers
package com.djit.apps.karaokey.matcher;
import android.content.res.Resources;
import android.support.annotation.StringRes;
import android.support.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.EditText;
import org.hamcrest.Description;
import org.hamcrest.Matcher;