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
| // Сапёр (Minesweeper) — консольная версия на ХУЯ. | |
| // | |
| // Команды (вводятся построчно, Enter в конце): | |
| // w/a/s/d — движение курсора (вверх/влево/вниз/вправо) | |
| // o или пробел — открыть клетку под курсором | |
| // f — поставить/снять флажок | |
| // n — новая игра | |
| // h — помощь | |
| // q — выход | |
| // |
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
| import turtle | |
| import requests | |
| import json | |
| from pprint import pprint | |
| messages = [ | |
| { | |
| "role": "system", | |
| "content": "You are an AI assistant. You control a turtle graphics LOGO like thing. You have functions like penup, pendown, forward, backward, left, right. You can use these functions to control a turtle to draw whatever a user asks for.", | |
| }, |
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
| uses | |
| graph, | |
| crt; | |
| var | |
| grDriver: Integer; | |
| grMode: Integer; | |
| ErrCode: Integer; | |
| i: Integer; | |
| score_str: string; |
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
| --- mine.pas 2026-05-03 17:00:23.257957313 +0200 | |
| +++ mine_dos.pas 2026-05-03 17:07:39.435775504 +0200 | |
| @@ -1,10 +1,8 @@ | |
| -{ -*- mode: opascal -*- } | |
| program Mine; | |
| -uses Termio; | |
| +uses Crt; | |
| const |
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
| import sys | |
| from dataclasses import dataclass | |
| import collections | |
| import enum | |
| import string | |
| class TokenType(enum.Enum): | |
| identifier = enum.auto() | |
| number = enum.auto() | |
| string = enum.auto() |
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
| import json | |
| def bad_json_append_please_donʼt(filename, data): | |
| with open(filename, 'rb+') as f: | |
| f.seek(-1, 2) | |
| if f.tell() > 1: | |
| f.write(b',') | |
| f.write(json.dumps(data).encode('utf-8')) | |
| f.write(b']') |
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
| import dataclasses | |
| from dataclasses import dataclass | |
| import asyncio | |
| import struct | |
| from PIL import Image | |
| VERSION = b'RFB 003.008\n' | |
| WIDTH = 800 |
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
| org 0x10 | |
| Console: | |
| .vector: rb 2 | |
| .read: rb 1 | |
| .pad: rb 4 | |
| .type: rb 1 | |
| .write: rb 1 | |
| .error: rb 1 | |
| org 0x100 |
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
| import random | |
| import math | |
| import PIL.Image | |
| funcs = [ | |
| ('add', 2, 1), | |
| ('mult', 2, 1), | |
| #('atan2', 2, 1), | |
| #('floor', 1, 1), | |
| #('ceil', 1, 1), |
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 "raylib.h" | |
| #include <math.h> | |
| const int WIDTH = 1800; | |
| const int HEIGHT = 900; | |
| const float MIN_ANGLE = 0.0f; | |
| const float MAX_ANGLE = M_PI/1.5; | |
| void DrawTree(float, float, float, float); |
NewerOlder