In this article we are going to talk about rxjs library and what we can archive using the rxjs library. I will describe the most common use rxjs operators. I will use rxjs in angular project for this we need to install rxjs by using command — npm install rxjs.
Start point is operators of, from and range. Using those operators we can create our own observables. Of operator can work with a sequence of objects. From operator can iterate in an array. Range obviously creates a range.
Next is last, first, and take. Those operators we need to put…
Today we’re gonna make an angular timer. We make a timer component. This component is able to countdown time, show fixed time and clear time.
Model has a couple of states. One state defines what timer should do another defines how many numbers we want to show to the user. Property “endTime” we use for countdown, “totalTime” we use for show fixed time. We are gonna use the function “setTimeout’ inside of the timer. That function returns id. This id we save in property “id”.
In the previous part, we created a skeleton. Our table can handle different types of data. In this part we will check if it is true and we will add new features like sorting, filtration.
In our second table we will show information about elements.
In many cases the best way to show data to users is to use a table. At first you’re gonna probably copy and paste code for one table to another and adjust this table to your needs. If you will go by this path eventually you will find yourself in a project with a lot of almost the same tables. Them you will need to add one feature in all tables. This task will take a lot of time and will become a nightmare. You definitely don’t want to do this type of task.
What a solution to this problem…
It is always hard to start something new. In this article I will introduce a main concept of docker and will give you a small list of commands that you need to know.
When we run a server on linux or windows we do not need every service that we have inside this operation system (OS). We need a small version of OS without UI with a couple of services in it. This small version of OS is portable and requires fewer resources on your PC.
Basically docker is a manager of those tiny virtual machines. …
Drawing a tree is a very popular test task. There are many ways to solve this task. But the interview expects to see from you a solution with one cycle.
Build Tower by the following given argument: number of floors (integer and always greater than 0).
The first picture argument is 3, the second picture argument is 6.
Plan is simple: make a wallet, send ETH to another wallet and check balance. In our application we are gonna use .net Nethereum library and blockcypher.
First we need to create an account on blockcypher.com. We need that to broadcast our transaction. After registration you will receive a token, without it we can not work with blockcypher api.
In VS code or Visual Studio we create an empty console project. Then we add 2 nuget packages Newtonsoft.Json and Nethereum.Web3.
Nethereum we use to create an address and private key for account. Those data we will store at json file. …
Right now everything is digital. We need to know how to protect all of those data from hackers. If you are thinking because I am not Bill Gates and I do not have 100k on my bank account nobody is gonna hack me. You never know how your data will be used or what hackers will do with your account. Here are good articles about what hackers could do with your email and PC.
I want to point out one very important thing — you can not be protected 100%. Everyone could be hacked. …