Skip to content

Instantly share code, notes, and snippets.

@zer0id0
zer0id0 / bookmarks_13_02_2019.html
Created February 13, 2019 20:12
book marks for chrome
<!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>
@zer0id0
zer0id0 / usersetting.json
Created February 13, 2019 19:31
vscode user settings
{
"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,
@zer0id0
zer0id0 / txt
Created February 12, 2019 14:03
Json server url params
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
@zer0id0
zer0id0 / flex.css
Created February 12, 2019 13:36
flex cheat sheet
@media(min-width:468px){
.container-1{
display:flex;
/*
align-items:flex-start;
align-items:flex-end;
align-items:center;
flex-direction:column;
*/
/*
* 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',

update object

var state = {
    id: 1,
    points: 100,
    name: "Goran"
};

var newState = {
@zer0id0
zer0id0 / fe-task.js
Last active December 18, 2018 20:47
frontend tasks
/*
* 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',
@zer0id0
zer0id0 / other-db.component.ts
Created November 21, 2017 13:53
material table linke to Api
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';
@zer0id0
zer0id0 / abbr.css
Last active July 20, 2022 07:04
Bootstrap and emmet
#myElement{
color: #000;
color: #000;
color: #f4f4f4;
position: absolute;
position: relative;
position: fixed;
position: static;