This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Task: to reduce the resolution of all videos to 720p in a folder without delving into the subdirectories. | |
| If a video is already in low resolution, the script just copies it. | |
| Usage: | |
| Run it in the video folder and specify as an argument | |
| the folder where you want to save the result. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; 99 Bottles of Beer | |
| ; ------------------ | |
| format PE console 4.0 | |
| entry start | |
| include 'win32a.inc' | |
| include 'macro/if.inc' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| from PIL import Image, ImageFilter | |
| from enum import Enum | |
| import random | |
| import numpy as np | |
| import tensorflow as tf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{Персона | |
| | birthday = 1 января 1970 | |
| | birthplace = Новосибирск | |
| | photo = [[Файл:Старое_фото.jpg]] | |
| | mother = [[Полное Имя|Кратко]] | |
| | father = [[Полное Имя|Кратко]] | |
| | spouse = [[Полное Имя|Кратко]] | |
| | siblings = | |
| <ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SDL2/SDL.h> | |
| int main() { | |
| SDL_Init(SDL_INIT_EVERYTHING); | |
| SDL_Window *window = SDL_CreateWindow("Drag-and-Drop", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_SHOWN); | |
| int running = 1; | |
| while (running) { | |
| SDL_Event event; | |
| while (SDL_PollEvent(&event)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| format pe CONSOLE 4.0 | |
| entry start | |
| include 'win32a.inc' | |
| stdin = -10 | |
| stdout = -11 | |
| stderr = -12 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Сверхупрощенная (в плане разбора) замена TAR.GZ. | |
| # Первая строка - кол-во файлов (N). | |
| # Следующие N строк - названия и размеры файлов через TAB. | |
| # Дальше файлы идут подряд. | |
| FILES_TO_CONCATENATE=( | |
| "file1.bmp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .idea | |
| .directory | |
| data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bool read = false; | |
| int tries = 0; | |
| while (!read && tries < 5) { | |
| try { | |
| if (wrongFoot) { | |
| throw new GotUpOnTheWrongFoot(); | |
| } | |
| // Yes, I really doesn't care if something | |
| // much deeper in it throws the exception. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// License: CC0 | |
| import std.math; | |
| real flog10(long n) { | |
| real r = 0; | |
| foreach (i; 1..(n+1)) { | |
| r += log10(i); | |
| } | |
| return r; |
NewerOlder