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
| " jblow.vim - A Vim color scheme based on Jonathan Blow's theme | |
| " Clear existing highlights | |
| hi clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif | |
| set background=dark |
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
| ##! Toy chess engine | |
| ##! Caleb Barger -- 09/10/23 | |
| from enum import Enum | |
| class PieceType(Enum): | |
| pawn = 0 | |
| night = 1 # Yes, this is the wrong knight but avoids having 2 'K's. | |
| bishop = 2 | |
| rook = 3 |
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
| //! | |
| //! multithreading_example.zig | |
| //! Caleb Barger | |
| //! 06/27/2023 | |
| //! Zig 0.13.0 | |
| //! | |
| //! Minified ZIG version of Casey Muratori's multithreading example from Handmade Hero. | |
| //! | |
| const std = @import("std"); |
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
| # PROTOTYPE CHUNK LOADING ALOGRITHM THING | |
| # Caleb Barger - 05/22/2023 | |
| import time | |
| import os | |
| CHUNK_CAP = 100 | |
| d_chunk_poses = [ | |
| (0, 1, 0), # Up | |
| (0, -1, 0), # Down |
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
| // Example: minimal build.zig setting up raylib. | |
| // Caleb Barger - 05/18/2023 | |
| const std = @import("std"); | |
| const rl = @import("raylib/src/build.zig"); | |
| pub fn build(b: *std.Build) void { | |
| const target = b.standardTargetOptions(.{}); | |
| const optimize = b.standardOptimizeOption(.{}); | |
| const exe = b.addExecutable(.{ |
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
| """ | |
| " Caleb Barger - 04/17/2022 | |
| """ | |
| import sys | |
| import time | |
| import curses | |
| COLS = 11 | |
| ROWS = 17 |