Skip to content

Instantly share code, notes, and snippets.

var currencyValidator = {
format: function (number) {
return (Math.trunc(number * 1000000000000) / 1000000000000).toFixed(2)
},
parse: function (newString, oldNumber) {
var CleanParse = function (value) {
return { value: value }
}
var CurrencyWarning = function (warning, value) {
return {
@nguyenhoangsin
nguyenhoangsin / convention.css
Last active March 2, 2018 10:12 — forked from geoffreyhale/CSS Property Order - Box Model Convention
CSS Property Order - Box Model Convention
display: ;
visibility: ;
float: ;
clear: ;
position: ;
top: ;
right: ;
bottom: ;
left: ;
@nguyenhoangsin
nguyenhoangsin / laravellocal.md
Created August 24, 2017 04:44 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci