These are instructions for configuring an Android expansion pack for an Ionic project (Cordova 5.0). These instructions include the bundle ID of a specific app, please replace with your own.
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
{ | |
'ar-SA': {locale: 'ar-SA', name: 'Arabic (Saudi Arabia)'}, | |
'zh-CN': {locale: 'zh-CN', name: 'Chinese (China)'}, | |
'zh-HK': {locale: 'zh-HK', name: 'Chinese (Hong Kong SAR China)'}, | |
'zh-TW': {locale: 'zh-TW', name: 'Chinese (Taiwan)'}, | |
'cs-CZ': {locale: 'cs-CZ', name: 'Czech (Czech Republic)'}, | |
'da-DK': {locale: 'da-DK', name: 'Danish (Denmark)'}, | |
'nl-BE': {locale: 'nl-BE', name: 'Dutch (Belgium)'}, | |
'nl-NL': {locale: 'nl-NL', name: 'Dutch (Netherlands)'}, | |
'en-AU': {locale: 'en-AU', name: 'English (Australia)'}, |
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
function getMediaURL(s) { | |
if(device.platform.toLowerCase() === "android") return "/android_asset/www/" + s; | |
return s; | |
} |
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
/** | |
* Changes the requested URL to lowercase. | |
* | |
* Only if URL does not include a filename or query variable. | |
*/ | |
function force_lowercase_urls() { | |
// Grab requested URL | |
$url = $_SERVER['REQUEST_URI']; | |
// If URL contains a period, halt (likely contains a filename and filenames are case specific) | |
if ( preg_match('/[\.]/', $url) ) { |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Bootstrap Starter Template</title> | |
<!-- Bootstrap --> |
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
<meta http-equiv="Content-Security-Policy" content=" | |
default-src 'self' data: gap: https://ssl.gstatic.com; | |
script-src 'self' 'unsafe-inline' 'unsafe-eval'; | |
style-src 'self' 'unsafe-inline'; | |
img-src 'self' data:; | |
media-src *;"> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
for f in "$@" | |
do | |
filename="${f%.*}" | |
plutil -convert json "$filename".plist -o "$filename".json | |
done |
This elevator "hack" will allow you to go immediately to your destination floor, bypassing all previously queued floors.
- Press & hold close door button until doors close. Keep holding.
- Press floor # button and do not release close door button until elevator moves.
Note: One LifeHacker commenter said: "it is completely dependant on the Logic Controller being used in the motor room of the elevator, as this trick does not work on older elevators".