This file contains 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
const http = require('http') | |
const express = require('express') | |
const app = express() | |
const cors = require('cors') | |
const mongoose = require('mongoose') | |
const blogSchema = new mongoose.Schema({ | |
title: String, | |
author: String, | |
url: String, |
This file contains 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
<View style={{ width: "80%" }}> | |
<Text style={styles.topTextStyle}>{test_quote}</Text> | |
</View> | |
<View | |
style={{ | |
width: "20%", | |
flex: 1, | |
alignItems: "center", | |
marginTop: "10%", | |
}} |
This file contains 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
<div> | |
<table> | |
<thead> | |
<tr> | |
<th>Previous Meter Reading</th> | |
<th>Current Meter Reading</th> | |
<th>Month</th> | |
<th>Year</th> | |
<th>Extras</th> | |
<th>Total (to be paid)</th> |
This file contains 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
import { Component, OnInit } from '@angular/core'; | |
import { RentItem } from '../../models/rent-item'; | |
import { RentStruct } from '../../models/rent-struct'; | |
@Component({ | |
selector: 'rent-list', | |
templateUrl: './rent-list.component.html', | |
styleUrls: ['./rent-list.component.css'] | |
}) | |
export class RentListComponent implements OnInit { |
This file contains 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
<div class="row"> | |
<div class="input-field col s6"> | |
<input [(ngModel)]="meterCurr" name="meterCurr" type="number"> | |
<label class="active" for="meterCurr">meter curr</label> | |
</div> | |
<div class="input-field col s6"> | |
<input [(ngModel)]="paid" name="paid" type="number"> | |
<label class="active" for="paid">paid</label> | |
</div> | |
<div class="input-field col s6"> |
This file contains 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
export class RentStruct { | |
baseRent: number; | |
electricityRate: number; | |
maintainenceCost: number; | |
total: number; | |
waterRent: number; | |
constructor (baseRent: number, electricityRate: number, maintainenceCost?: number, waterRent?: number) { | |
this.baseRent = baseRent; | |
this.electricityRate = electricityRate; |
This file contains 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
import { RentStruct } from "./rent-struct"; | |
export class RentItem { | |
extraCost: number; | |
meterCurr: number; | |
meterPrev: number; | |
month: number; | |
year: number; | |
paid: number; | |
totalSum: number; |
This file contains 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
rents_x = [ | |
{ | |
"extraCost": 0, | |
"meterCurr": 120, | |
"meterPrev": 100, | |
"month": 7, | |
"year": 2018, | |
"paid": 19500, | |
"totalSum": 19500 | |
}, |
This file contains 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
<div> | |
<table> | |
<thead> | |
<tr> | |
<th>Previous Meter Reading</th> | |
<th>Current Meter Reading</th> | |
<th>Month</th> | |
<th>Year</th> | |
<th>Extras</th> | |
<th>Total (to be paid)</th> |
This file contains 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
<nav> | |
<div class="nav-wrapper"> | |
<a href="#" class="brand-logo">Rent Keeper</a> | |
<ul id="nav-mobile" class="right hide-on-med-and-down"> | |
<li><a href="sass.html">Sass</a></li> | |
<li><a href="badges.html">Components</a></li> | |
<li><a href="collapsible.html">JavaScript</a></li> | |
</ul> | |
</div> | |
</nav> |
NewerOlder