Skip to content

Instantly share code, notes, and snippets.

View FluentCoding's full-sized avatar
💯

FluentCoding FluentCoding

💯
View GitHub Profile
@FluentCoding
FluentCoding / cli.zig
Last active February 4, 2026 12:02
error pretty-print fn from cli
fn fail(
arena_allocator: *std.heap.ArenaAllocator,
err: compiler.stage.CommonErrorContext,
source_files: []project.SourceFile,
) !void {
const allocator = arena_allocator.allocator();
var err_start_char: usize = undefined;
const source_file: project.SourceFile = file: {
for (source_files) |source_file| {
const std = @import("std");
const ast = @import("../repr/root.zig").ast;
const stage = @import("root.zig");
const project = @import("../../project/root.zig");
const UniqueIdentifierMap = @import("../repr/root.zig").unique_ident;
// Public Interface
pub const Result = stage.CommonResult(ast.Document);
pub fn parse(source_file: *const project.SourceFile, arena: *std.heap.ArenaAllocator) Result {
var parser = init(source_file.contents, arena);
@FluentCoding
FluentCoding / dolphin_build_shas.ini
Last active June 4, 2020 18:47
Dolphin Builds SHA for Netplay Build Manager
; Don't modify this file!
[Slippi r18]
Hash=6e7f835c95ea7892427e73723e4eb7391295b0cf
Icon=slippi.png
[Faster Melee 5.9B]
Hash=3145c7e3433c09ce94909f5763b653b66b75658d
@FluentCoding
FluentCoding / tetris.java
Last active March 4, 2020 21:26
Tetris in JavaKara
import ch.karatojava.interpreter.InterpreterListenerAdapter;
import ch.karatojava.interpreter.RunnableInterface;
import ch.karatojava.kapps.Application;
import ch.karatojava.kapps.KaraGuiFactory;
import ch.karatojava.kapps.javakaraide.JavaKaraInterpreter;
import javafx.embed.swing.JFXPanel;
import javafx.scene.control.Alert;
import javafx.scene.input.KeyCode;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;