Skip to content

Instantly share code, notes, and snippets.

View ManuelPeinado's full-sized avatar

Manuel Peinado Gallego ManuelPeinado

View GitHub Profile
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 October 19, 2014 20:02
Fading action bar effect using the new Toolbar class from the support library
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;
Read in 63125 method IDs.
<root>: 63125
: 8
android: 14742
accessibilityservice: 6
accounts: 3
animation: 41
app: 389
appwidget: 5
content: 279
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 December 16, 2015 11:09
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
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 November 1, 2012 16:32
See if a certain time has already passed in a given time zone
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) {