Skip to content

Instantly share code, notes, and snippets.

View luiztessadri's full-sized avatar

Luiz Tessadri luiztessadri

View GitHub Profile
@luiztessadri
luiztessadri / VideoEnabledWebChromeClient.java
Created May 4, 2018 10:33 — forked from benvium/VideoEnabledWebChromeClient.java
Playing HTML5 video on fullscreen in android webview. Note: I did not write this, it has been taken from http://stackoverflow.com/questions/15768837/playing-html5-video-on-fullscreen-in-android-webview
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnCompletionListener;
import android.media.MediaPlayer.OnErrorListener;
import android.media.MediaPlayer.OnPreparedListener;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.webkit.WebChromeClient;
import android.widget.FrameLayout;
import android.widget.VideoView;
@luiztessadri
luiztessadri / gist:5c1d2e831b76f1d6cc26b6b1fd910414
Created November 28, 2017 18:49
composer, lamp, android and jdk, docker, nodejs, laravel
//composer install
https://www.1and1.com/cloud-community/learn/application/php/install-and-use-php-composer-on-ubuntu-1604/
https://www.tutorialspoint.com/articles/how-to-install-and-configure-the-composer-on-ubuntu-16-04
https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/
https://www.linode.com/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-16-04
sublime text
android studio
jdk
@luiztessadri
luiztessadri / SharedPreferencesSingletonEnumKeyTemplate.java
Created May 12, 2017 18:38 — forked from alphamu/SharedPreferencesSingletonEnumKeyTemplate.java
A SharedPreferences singleton that can be used to centralise and simplify reading and writing of SharedPerferences in your Android app. There are 2 versions, one that uses static String for Keys and an other that uses enums. Which one you use comes down to your preference, enums I feel provides better control when you have multiple programmers w…
#if (${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import android.content.Context;
import android.content.SharedPreferences;
/*
* A Singleton for managing your SharedPreferences.
*
* You should make sure to change the SETTINGS_NAME to what you want
* and choose the operating made that suits your needs, the default is