Skip to content

Instantly share code, notes, and snippets.

@rependa
rependa / Formats
Last active November 4, 2020 14:33
function FormatCurrency(number) {
number = parseFloat(number);
if (isNaN(number)) {
number = 0;
}
var newNumber = number.toFixed(2).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
return newNumber;
}
@rependa
rependa / main.js
Created November 2, 2020 05:04
dtest
app.use(router);
app.use(store);
app.mount('#app');
@rependa
rependa / bootstrap-cdn-template.html
Created May 31, 2018 20:09 — forked from sharynneazhar/bootstrap-cdn-template.html
Bootstrap HTML Template (with CDN)
<!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 101 Template</title>
<!-- Bootstrap -->
@rependa
rependa / index.html
Last active October 21, 2015 20:43
yYpmJO
<div ng-app="" ng-init="names=[
{name:'Jani',country:'Norway'},
{name:'Hege',country:'Sweden'},
{name:'Kai',country:'Denmark'}]">
<ul>
<li ng-repeat="x in names">
{{ x.name + ', ' + x.country }}
</li>
</ul>
@rependa
rependa / JYMQVJ.markdown
Last active October 21, 2015 20:06
JYMQVJ
@rependa
rependa / index.html
Last active October 21, 2015 19:50
mepZGL
<div ng-app="" ng-init="points=[1,15,19,2,40]">
<p>The third result is {{ points[2] }}</p>
<p>The second result is <span ng-bind="points[1]"></span></p>
</div>
@rependa
rependa / index.html
Created October 21, 2015 19:47
wKpLxR
<div ng-app="" ng-init="person={firstName:'John',lastName:'Doe'}">
<p>The name is {{ person.lastName }}</p>
<p>The name is <span ng-bind="person.lastName"></span></p>
</div>
@rependa
rependa / BoJgdP.markdown
Last active October 21, 2015 19:27
BoJgdP
@rependa
rependa / XmVLgb.markdown
Last active October 21, 2015 19:23
XmVLgb
@rependa
rependa / index.html
Last active October 21, 2015 18:51
qOpGeO
<div ng-app="myApp" ng-controller="myCtrl">
First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
<br>
Full Name: {{firstName + " " + lastName}}
</div>