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
| // Push a maybe-change backup to the undo system | |
| // Commit-or-discard a set of changes | |
| // | |
| // * Push to end (with wraparound) | |
| // * Reclaim free blocks by pushing the head | |
| // * Discard from middle | |
| // * Move cursor around | |
| // * Keep a separate set of pending items to then include into the structure as above | |
| // * Always keeping the chronological order |
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 <stdbool.h> | |
| #include <raylib.h> | |
| struct Node { | |
| const char *name; | |
| int prev; | |
| Vector2 ui_pos; | |
| }; | |
| typedef struct Node Node; |
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
| # Based on https://krita-artists.org/t/checkerbord-seexpr-pattern/13900 | |
| $color1 = [0,0,0]; | |
| $color2 = [1,1,1]; | |
| $scale_horizontal = 3 ; # 1,500 | |
| $scale_vertical = 3; # 1,500 | |
| $offset_horizontal = 5; # 1,500 | |
| $offset_vertical = 5; # 1,500 | |
| $rotation = 0; # 0,360 |
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
| """ | |
| Super bare-bones mesh exporter script. | |
| Exports into a minimal data format ready to upload to the GPU. | |
| Vertices are deduplicated, and using index buffer. | |
| Mesh is triangulated. Hard edges are preserved. | |
| Coordinates are mesh-local, converted to Y-up. | |
| --- Data Format --- | |
| VERTEX_COUNT: u32 | |
| INDEX_COUNT: u32 | |
| VERTEX_BUFFER: float[VERTEX_COUNT][8] |
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 "LegConstraintComponent.h" | |
| ULegConstraintComponent::ULegConstraintComponent() { | |
| PrimaryComponentTick.bCanEverTick = true; | |
| } | |
| void ULegConstraintComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction * ThisTickFunction) | |
| { | |
| Super::TickComponent(DeltaTime, TickType, ThisTickFunction); | |
| if (!Pelvis || !LeftLeg || !RightLeg || !LeftKnee || !RightKnee) |
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 <dos.h> | |
| #include <conio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #define STAR_MAX 128 | |
| #define STAR_DARK 16 | |
| #define STAR_BRIGHT 31 | |
| #define STAR_SHIFT 4 |
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"?> | |
| <ui version="4.0"> | |
| <class>Form</class> | |
| <widget class="QWidget" name="Form"> | |
| <property name="geometry"> | |
| <rect> | |
| <x>0</x> | |
| <y>0</y> | |
| <width>350</width> | |
| <height>301</height> |
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 unittest | |
| class TestOrder(unittest.TestCase): | |
| def setUp(self): | |
| self.stuff = [] | |
| def test_01_create_stuff(self): | |
| for n in xrange(20): | |
| self.stuff.append(n) |