Categories
Laptop OsX Solutions

Open Apps From Unidentified Developers in Mac OS Sierra

Here is How to open applications that can’t be opened as they are from an ‘unidentified developer’ in Mac OS Sierra How to Open Applications From Unidentified Developers in Mac OS Sierra Opening a Specific App: If you would like to allow just one specific application to run, use the following steps: Hold down the […]

Categories
JavaScript Open Source Solutions Web

JavaScript Date Format YYYY-MM-DD

Here is a simple function that takes the input of JS Date and returns a string of format YYYY-MM-DD: var getDateFromDateTime = function(date) { date = new Date(date); //Using this we can convert any date format to JS Date var mm = date.getMonth() + 1; // getMonth() is zero-based var dd = date.getDate(); if(mm

Categories
JavaScript Open Source Solutions Web

Convert JavaScript Date format YYYYMMDD

Here is a simple function that takes the input of JS Date and returns a string of format YYYYMMDD: var getDateFromDateTime = function(date) { date = new Date(date); //Using this we can convert any date format to JS Date var mm = date.getMonth() + 1; // getMonth() is zero-based var dd = date.getDate(); if(mm

Categories
Open Source Solutions

Git – Undo Uncommitted Changes to a Specific File

Here are the steps remove uncommited changes to a file in Git: Firstly check the list of uncommited changes in your system by using the command “git status“ To remove the changes to the file use the command: git checkout <filepath>  Make sure you use the full path as seen in the git status output […]

Categories
JavaScript Open Source Web

AngularJS – Round off Number to Fixed Length of Fractions

Angular’s built in number filter allows one to specify the number of decimals that should be displayed. The syntax is as follows: {{val | number:<count>}} Where val is the value to be displayed, number is the filtername and count is the number of decimals to be displayed. For eg.: If val is 1234.56789 {{val | […]