This file contains hidden or 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 SDK Manager Behind Proxy | |
| # Replace following with actual Values | |
| # __PROXY_HOST__, __PROXY_PORT__, __USER-NAME__, __PASSWORD__ | |
| _JAVA_OPTIONS="-Dhttp.proxyHost=__PROXY_HOST__ -Dhttp.proxyPort=__PROXY_PORT__ -Dhttp.proxyUser=__USER-NAME__ -Dhttp.proxyPassword=__PASSWORD__" bash -c sdkmanager | |
| # SDK Manager Install Package | |
| sdkmanager "platform-tools" "platforms;android-27" | |
| # create android avd |
This file contains hidden or 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
| #/bin/sh | |
| tar -czvf test.tar.gz -X exclude-list.txt test |
This file contains hidden or 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
| *SET cookie manager for webkit* | |
| android.webkit.CookieSyncManager.createInstance(appContext); | |
| // unrelated, just make sure cookies are generally allowed | |
| android.webkit.CookieManager.getInstance().setAcceptCookie(true); | |
| *SET cookie manager for java.net (native calls)* | |
| // magic starts here | |
| WebkitCookieManagerProxy coreCookieManager = new WebkitCookieManagerProxy(null, java.net.CookiePolicy.ACCEPT_ALL); |
This file contains hidden or 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
| var date = new Date(); | |
| var options = { | |
| weekday: "short", | |
| year: "numeric", | |
| month: "2-digit", | |
| day: "numeric" | |
| }; | |
| date.toLocaleDateString("en", options);//en is language option, you may specify.. |
This file contains hidden or 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
| body { | |
| direction: rtl; | |
| } |
This file contains hidden or 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
| /* | |
| * Simple Version Comparator for Javascript | |
| */ | |
| function compareVersions(v1, v2) { // return -1: v1 > v2, 0: v1=v2, 1: v1<v2, NaN: invalid versions | |
| console.log("Comparing Versions ", v1, v2); | |
| v1 = typeof v1 !== 'undefined' ? v1 : "0"; | |
| v2 = typeof v2 !== 'undefined' ? v2 : "0"; | |
This file contains hidden or 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
| #/bin/sh | |
| ################# | |
| # @author Vishal Kardode | |
| # This Script Generate Release Build of Cordova Application for Android, Signs it using given Keystore and prepares to submit to App Store. | |
| # This takes version as parameter, if not provided version will take current date time value | |
| # Update following Configuration before use | |
| # APP_NAME = Application Name | |
| # KEYSTORE_FILE = Keystore File Path. This file uses Keystore kept at parellel location to this file | |
| # KEYSTORE_PASS = Keystore Password |
This file contains hidden or 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
| 127.0.0.1 | |
| 172.21.32.179 |
This file contains hidden or 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
| @echo off | |
| REM @author VISHAL | |
| ECHO "Deleting uncompressed JS files" | |
| for /f "tokens=* delims=" %%i in ('dir /s /b *.uncompressed.js') do ( | |
| echo "removing %%i" | |
| rem rmdir /s /q "%%i" | |
| del "%%i" |
This file contains hidden or 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
| // Request Directory | |
| function getDirectory(dirName /*this can be directory path also*/) { | |
| window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem){ | |
| // Success Function Callback | |
| fileSystem.root.getDirectory(dirName, {}, function(directory) { | |
| // Success Function Callback | |
| console.log(directory, 'directory'); | |
| }, function(error){ | |
| //Error CallBack - getDirectory | |
| console.log(error,"Directory Lookup Error "); |
NewerOlder