Подвернулась интересная задача. Написать программу, которая по заданной любой дате выводит день недели. Первый вариант алгоритма: 1. Посчитать сколько дней прошло до заданной даты с момента начала отсчета. 2. Взять остаток от деления на 7 (количество дней в неделе). 3. Полученный результат и соответствует дню недели. 0 – воскресение, 1 – понедельник, 2 – вторник и т.д.
Решил создать блог. Давно хотел. На это меня вдохновлял опыт знакомых мне успешных людей, ведущих свои блоги. Ведущих не часто, но делающих интересные записи. Перспективы. В идеале блог должен перерасти в свой сайт. По типу deperson.ru . Засекаем :)
I encountered the following interesting task at my job. We move all our git-repositories from our remote server to our brand-new instance of GitLab. Obviously, simple git clone and git push to a new remote is not exactly what we want. We have way more remote branches on remote and for the branches a have locally they are not all on the current stage. The solution would be to check put every branch and pull it. The same with tags, we have a lot. The same for push. Simple git push pushes only one specific branch at a time. It comes to a big pile of boring operations giving that we have about 20 repos. What I've found is git clone --bare command and git push --mirror Let's take a look at the example git clone --bare https://github.com/ exampleuser / old-repository .git git push --mirror https://github.com/ exampleuser / new-repository .git See official docs from GitHub https://docs.github.com/en/repositories/creating-and-managing-repositories/duplicating...
Комментарии
Отправить комментарий