Skip to content

Instantly share code, notes, and snippets.

Manuel Peinado Gallego ManuelPeinado

Block or report user

Report or block ManuelPeinado

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
View load-localizations.diff
diff --git a/Assets/Plex.Localization/LocalizationManager.cs b/Assets/Plex.Localization/LocalizationManager.cs
index d526a88..3a7f51c 100644
--- a/Assets/Plex.Localization/LocalizationManager.cs
+++ b/Assets/Plex.Localization/LocalizationManager.cs
@@ -90,18 +90,13 @@ namespace PlexLocalization
string filePath = Path.Combine(Application.streamingAssetsPath, "Localization", fileName);
PlexTrace.Debug($@"[Localization] Loading from {filePath}");
- WWW www = new WWW(filePath);
- yield return www;
@ManuelPeinado
ManuelPeinado / MainActivity.java
Created Oct 19, 2014
Fading action bar effect using the new Toolbar class from the support library
View MainActivity.java
package com.github.manuelpeinado.toolbartest;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.View;
View gist:ba9f8c842f5df23f0608
Read in 63125 method IDs.
<root>: 63125
: 8
android: 14742
accessibilityservice: 6
accounts: 3
animation: 41
app: 389
appwidget: 5
content: 279
View gist:2ad9cd40d46eaae68106
Read in 63179 method IDs.
<root>: 63179
: 8
android: 14762
accessibilityservice: 6
accounts: 3
animation: 41
app: 388
appwidget: 5
content: 279
@ManuelPeinado
ManuelPeinado / SimpleBindingAdapter.java
Last active Dec 16, 2015
A variation on Jake Wharton's BindingAdapter (https://gist.github.com/JakeWharton/5423616) which is slightly more convenient for adapters that only have one view type
View SimpleBindingAdapter.java
package com.manuelpeinado;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
/**
* A variation on Jake Wharton's BindingAdapter (https://gist.github.com/JakeWharton/5423616) which is slightly more convenient
* for adapters that only have one view type
*/
@ManuelPeinado
ManuelPeinado / IsPastTest.java
Created Nov 1, 2012
See if a certain time has already passed in a given time zone
View IsPastTest.java
public class IsPastTest {
public static final String SPAIN = "Europe/Madrid";
public static final String PORTUGAL = "Europe/Lisbon";
public boolean isPast(int year, int month, int day, int hour, int minute) {
return isPast(year, month, day, hour, minute, null);
}
public boolean isPast(int year, int month, int day, int hour, int minute, String timeZone) {
You can’t perform that action at this time.