Understanding prototypes in javascript

http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/ https://www.pluralsight.com/blog/software-development/understanding-javascript-prototypes https://javascriptweblog.wordpress.com/2010/06/07/understanding-javascript-prototypes/

Best Websites to Learn Programming in Free

https://frontendmasters.com/ https://www.class-central.com http://www.udacity.com http://www.freecodeamp.com https://codecademy.com https://mva.microsoft.com/ https://github.com/open-source-society/computer-science https://www.khanacademy.org https://www.safaribooksonline.com/ ( One Month Free Trial ) http://edx.org http://coursera.org http://udemy.com https://www.skillshare.com/ https://thenewboston.com/videos.php https://angularfirebase.com/ http://w3schools.com https://www.airpair.com/ https://egghead.io http://tutsplus.com https://www.pluralsight.com/browse/software-developmentĀ ( 10 Days Free Trial ) https://hackr.io https://academy.fossbytes.com/ https://www.codeschool.com http://www.learnvern.com/ http://www.lynda.com (10 Days Free Trial) https://www.datacamp.com https://alison.com/ http://programming-motherfucker.com/become.html https://itpro.tv/PAID https://www.cbtnuggets.com https://linuxacademy.comAWS (Amazon Web Services) https://www.youtube.com/watch?v=BDBvHOaaKHo&list=PLv2a_5pNAko0Mijc6mnv04xeOut443Wnk https://linuxacademy.com/ (AWS and other cloud […]

Angular.js How to remove hash from url?

Configuration: $locationProvider .html5Mode(true); .htaccess file in root directory: RewriteEngine On # If an existing asset or directory is requested go to it as it is RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^ – [L] # If the requested resource doesn’t exist, use index.html RewriteRule ^ /index.html In this mode you can use links […]

How to Change Bootstrap Carousel Slide Speed

The speed cannot be controlled by the API. Though you can modify CSS that is in charge of that. find in the bootstrap.css file: .carousel-inner > .item { position: relative; display: none; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } and change 0.6s to the time […]

Cordova: How to download file and get download progress?

var assetURL = ‘http://www.anywebsite.com/test.mp3’; var store = cordova.file.externalRootDirectory; // output in android: file:///storage/emulated/0/ // or // var store = “cdvfile://localhost/persistent/”; var fileName = ‘Sounds/test.mp3’; // NOTE: Sounds folder should already be there in order to download file in that folder var fileTransfer = new FileTransfer(); fileTransfer.download(assetURL, store + fileName, function(entry) { console.log(“Success!”); //appStart(); }, function(err) […]

Cordova: How to check if a file exists or not?

document.addEventListener(“deviceready”, init, false); //The directory to store data var store; //File name of our important data file we didn’t ship with the app var fileName = “testfile.txt”; function init() { console.log(“Checking for data file.”); // output in android: file:///storage/emulated/0/ store = cordova.file.externalRootDirectory; // or // store = “cdvfile://localhost/persistent/”; //Check for the file. window.resolveLocalFileSystemURL(store + fileName, […]

Cordova: How to get list of all Files/Directories in a directory?

function success(entries) { var i; for (i=0; i<entries.length; i++) { console.log(‘En – ‘, entries[i]); } } function fail(error) { console.log(“Failed to list directory contents: “, error); } // output in android: file:///storage/emulated/0/Sounds var directory_path = cordova.file.externalRootDirectory+”Sounds”; window.resolveLocalFileSystemURL(directory_path , function(dirEntry) { var directoryReader = dirEntry.createReader(); console.log(dirEntry); // Get a list of all the entries in the […]

Cordova: How to create directory?

/* ############ # Method 1 # ############ */ // output in android: file:///storage/emulated/0/ var base_url = cordova.file.externalRootDirectory; // or // var base_url = “cdvfile://localhost/persistent/”; var new_directory = ‘TEST’; // To Create a sub Directory inside a folder // var new_directory = ‘Sounds/Test’; // Here ‘Sounds’ is the name of existing parent directory. Parent Directoy must […]