This file contains 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 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 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 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 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 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 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 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 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; |
This file contains 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
/++ | |
+ Experiment 2017-02-28. | |
+ Author: Георгий Устинов | |
+ License: CC0. | |
+ | |
+ Executable size on Linux x86_64 | |
+ LDC2 0.17.1 (DMD v2.068.2, LLVM 3.8.0) | |
+ | |
+ ldc2 dzip.d ............... 26.6 KiB (27 232) | |
+ ldc2 -release dzip.d ...... 26.5 KiB (27 176) |
NewerOlder