In the continuously changing world of information technologies, it is crucial to always be up-to-date with most actual information.
Since the Coronavirus Disease is the most trending topic in our days, I decided to share my top of resources related to COVID-19.
Like in many other cases, one of the most relevant info is provided by Google itself. Just search for “COVID” and you’ll see all the trending news, statistics by each country, and other useful info.
If you’ve ever tried to write stories on Medium, you’re most likely aware of this issue.
All of the comments you’ve left on someone’s stories are actually stories themselves.
From a certain perspective that makes sense since your comments can gather likes and views and can be visible for search engines as their own pages.
But it brings a lot of inconveniences when you open the list of your stories and see that all your comments are mixed in the same list with stories, and there’s no way to filter them.
Since we didn’t get a chance to participate in this year’s Google Hash Code, we decided to try our best in the extended round. Here’s the result: 530th in the world ranking and 53rd in Ukraine.
Google has been organizing a competition for programmers since 2016 called Hash Code. Teams of two to four people can participate in the competition, where they have to solve an optimization problem. Every year it attracts thousands of people from all over the world.
It has two rounds: main and extended. The main round continues only for four hours, while the extended one can…
When it comes to uploading files, we can, of course, easily handle it with the default
<input type='file'/>. But I’m pretty sure most will agree it’s much comfier to drag and drop your files into the web page rather than searching for them in the file-dialog window.
Therefore, let’s figure out how we can easily create an area in React for the dragging and dropping of files.
First, let’s create a basic project structure and styling.
This is what we’ve got so far.
If you’ve studied some low-level language, such as C/C++, as I did in university, you may already know that variables can be passed either as a value or as a reference (and, of course, as a pointer, but let’s not dive into such details).
That’s why we need to make a workaround using these four simple steps:
1. Сreate a temporary
<textarea> element and append it to the body.
const textarea = document.createElement(‘textarea’);
2. Enter the specified text to this
<textarea> and select it.
textarea.value = text;
Note that the
select method may not be supported by some browsers (especially the mobile ones). …
Full Stack Software Engineer