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); |
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
| <?xml version="1.0" encoding="utf-8" standalone="no"?> | |
| <manifest xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" package="org.example.pongpong"> | |
| <uses-sdk android:minSdkVersion="29" | |
| android:targetSdkVersion="29" /> | |
| <uses-permission android:name="android.permission.SET_RELEASE_APP"/> | |
| <application android:debuggable="true" android:hasCode="false" android:label="PongPong" tools:replace="android:icon,android:theme,android:allowBackup,label" android:icon="@mipmap/icon"> | |
| <activity android:configChanges="keyboardHidden|orientation" android:label="PongPong" android:name="android.app.NativeActivity" android:exported="true"> | |
| <meta-data android:name="android.app.lib_name" android:value="pongpong"/> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN"/> |
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 <stdio.h> | |
| #include <graph.h> | |
| #include <conio.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| struct cell { | |
| bool open; | |
| bool mine; |
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 <stdlib.h> | |
| #include <raylib.h> | |
| #include <raymath.h> | |
| const int SCREEN_WIDTH = 600; | |
| const int SCREEN_HEIGHT = 600; | |
| const int BOX_SIZE = 30; | |
| #define BALL_SIZE (BOX_SIZE/3) |
NewerOlder