This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<title>@yield('title', 'default title')</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width"> | |
@yield('meta') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.medic52.utilities; | |
import java.io.BufferedReader; | |
import java.io.DataOutputStream; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.security.KeyStore; | |
import java.util.HashMap; | |
import java.util.Iterator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if(session()->has('flash_message')) | |
<div class="row container-fluid"> | |
<?php | |
$messageImportant = session()->has('flash_message_important') && session('flash_message_important'); | |
$alertType = session()->has('flash_message_alert_class') ? session('flash_message_alert_class') : ''; | |
?> | |
<div class="alert {{ $alertType }} {{ $messageImportant ? 'alert-important' : '' }}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//bootstrap datepicker | |
https://eternicode.github.io/bootstrap-datepicker/?markup=input&format=&weekStart=&startDate=&endDate=&startView=0&minViewMode=0&todayBtn=false&clearBtn=false&language=en&orientation=auto&multidate=&multidateSeparator=&keyboardNavigation=on&forceParse=on#sandbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$nationals = array( | |
'Afghan', | |
'Albanian', | |
'Algerian', | |
'American', | |
'Andorran', | |
'Angolan', | |
'Antiguans', | |
'Argentinean', | |
'Armenian', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XDA - guide | |
http://forum.xda-developers.com/showthread.php?t=2528952 | |
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a new project | |
File -> New -> Android Application Project | |
You can leave all the options with their default value | |
Choose BlankActivity in the Create Activity screen | |
Ensure you have the latest version (v2) of the Google Play Services installed. | |
Select Window > Android SDK Manager or run android at the command line. | |
Scroll to the bottom of the package list and select Extras > Google Play services. | |
The Google Play services SDK is downloaded to your computer and installed in your Android SDK environment at <android-sdk-folder>/extras/google/google_play_services/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String loadJSONFromAsset() { | |
String json = null; | |
try { | |
InputStream is = getAssets().open("file_name.json"); | |
int size = is.available(); | |
byte[] buffer = new byte[size]; | |
is.read(buffer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Application; | |
/** | |
* Created by magbanua-ariel on 27/01/2016. | |
*/ | |
public class App extends Application{ | |
private static App instance = null; | |
public static App getInstance(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.) Compress or minify all CSS files and codes. Using any CSS minifiers example http://csscompressor.com/ then include or copy it again and overwrite the old one. | |
2.) Compress or minify all JavaScript files and codes. Using any JavaScript minifiers example http://javascript-compressor.com/ then include or copy it again and overwrite the old one. | |
3.) A lazy loading library is already installed called jquery_lazyload it is under the bower_components. To apply lazy loading on img tags basically you add class "lazy" and instead of src attribute use data-original attribute. Please refer to the example below. | |
original: | |
<img class="item" src="images/100secure.png" > |
OlderNewer