Skip to content

Instantly share code, notes, and snippets.

@Attosius
Attosius / vimeo-downloader.js
Created July 18, 2020 19:12 — forked from mistic100/vimeo-downloader.js
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
@Attosius
Attosius / gist:90ea47f5f021835ee71f658b4ed7f550
Created August 24, 2025 18:18
ДЗ: Переменные
string name = "Andrey";
char symbol = 'a';
bool canPay = true;
byte alpha = 255;
short typeOfCode = 1000;
int money = 0;
uint unusedType = 4_000_000_000;
long bigNumber = 5_000_000_000;
decimal muchMoney = 10_000_000_000;
@Attosius
Attosius / gist:7eff4ec9d3953d4ad20f57719710c3b1
Last active August 24, 2025 19:10
ДЗ: Работа со строками
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Добрый день, как вас зовут?");
string name = Console.ReadLine();
Console.WriteLine("Сколько вам лет?");
string age = Console.ReadLine();
@Attosius
Attosius / gist:99fd2f71aa249124e2540052b92d175d
Last active August 25, 2025 10:52
ДЗ: Картинки
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
int picturesOnScreen = 52;
int picturesCountInRow = 3;
@Attosius
Attosius / gist:4a3fbe7e5dd2345a5ee7847501caaf80
Created August 25, 2025 18:30
ДЗ: Перестановка местами значений
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var name = "Vasilev";
var surname = "Andrey";
@Attosius
Attosius / gist:352291db787bcefa1046c2140bcbedbe
Created August 25, 2025 18:42
ДЗ: Магазин кристаллов
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.Write($"Введите изначальное количество золота: ");
var goldAmount = Convert.ToInt32(Console.ReadLine());
@Attosius
Attosius / gist:4b93b7f5af02ed07563a7a0cbbb77388
Created August 25, 2025 18:52
ДЗ: Поликлиника
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.Write("Введите кол-во пациентов: ");
var patientsCount = Convert.ToInt32(Console.ReadLine());
@Attosius
Attosius / gist:1d1b5b6d1d33eaa9b25727dcf21d0d54
Created August 29, 2025 19:02
ДЗ: Освоение циклов
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
Console.Write($"Введите текст для повтора: ");
var text = Console.ReadLine();
@Attosius
Attosius / gist:4b8c61b6f90bb1ed50ce33462b0feeff
Last active August 29, 2025 19:42
ДЗ: Контроль выхода
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var wordForExit = "exit";
string userInput = null;
@Attosius
Attosius / gist:d3263b9c446a6fe96f2b5679c0d021d7
Last active August 29, 2025 19:56
ДЗ: Последовательность
using System;
namespace IJuniorTasks
{
internal class Program
{
static void Main(string[] args)
{
var startNumber = 5;
var increment = 7;