var state = {
id: 1,
points: 100,
name: "Goran"
};
var newState = {
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
#myElement{ | |
color: #000; | |
color: #000; | |
color: #f4f4f4; | |
position: absolute; | |
position: relative; | |
position: fixed; | |
position: static; |
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
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1546251788" LAST_MODIFIED="1549980918" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Bar</H3> | |
<DL><p> |
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
{ | |
"window.zoomLevel": 2, | |
"editor.minimap.enabled": false, | |
"prettier.eslintIntegration": true, | |
"eslint.alwaysShowStatus": true, | |
"eslint.run": "onSave", | |
"vetur.format.defaultFormatter.js": "vscode-typescript", | |
"vetur.format.defaultFormatter.html": "js-beautify-html", | |
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, | |
"eslint.autoFixOnSave": true, |
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
GET ALL USERS | |
http://localhost:3000/users | |
GET SINGLE USER | |
http://localhost:3000/users/1 | |
GET ALL COMPANIES | |
http://localhost:3000/companies | |
GET SINGLE COMPANY |
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
@media(min-width:468px){ | |
.container-1{ | |
display:flex; | |
/* | |
align-items:flex-start; | |
align-items:flex-end; | |
align-items:center; | |
flex-direction:column; | |
*/ |
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
/* | |
* Write a function that prints the temperature closest to 0 among input data. | |
* If two numbers are equally close to zero, positive integer has to be considered closest to zero (for instance, if the temperatures are -5 and 5, then display 5) | |
*/ | |
const temps = [ | |
'1 -1 -3 3 2', | |
'-4 -2 -111', | |
'12 -1 3 6 2 9', | |
'12 2 6 9 -2 7', | |
'-5 -4 -2 7 -20 4 2 18 11 5', |
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
/* | |
* Write a function that prints the temperature closest to 0 among input data. | |
* If two numbers are equally close to zero, positive integer has to be considered closest to zero (for instance, if the temperatures are -5 and 5, then display 5) | |
*/ | |
const temps = [ | |
'1 -1 -3 3 2', | |
'-4 -2 -111', | |
'12 -1 3 6 2 9', | |
'12 2 6 9 -2 7', | |
'-5 -4 -2 7 -20 4 2 18 11 5', |
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 { Observable } from 'rxjs/Rx'; | |
import { MdPaginator } from '@angular/material'; | |
import { DataSource } from '@angular/cdk/collections'; | |
import { ApiHelperService } from './../../../_services/api-helper.service'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
import { Injectable } from '@angular/core'; | |
import { Http } from '@angular/http'; | |
import 'rxjs/add/observable/merge'; | |
import 'rxjs/add/operator/map'; |