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
| #!/usr/bin/env node | |
| /** | |
| * Patch Claude Code CLI to fix device file blocking issue | |
| * https://github.com/anthropics/claude-code/issues/6237 | |
| * | |
| * This patches the minified cli.js directly to skip /dev/* paths | |
| * when reading files extracted from bash output. | |
| * | |
| * Usage: | |
| * node patch-cli.js # Patch installed CLI |
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
| use winit::{ | |
| event::{Event, WindowEvent}, | |
| event_loop::{ControlFlow}, | |
| }; | |
| use std::cell::RefCell; | |
| pub struct ExampleBase { | |
| pub window: winit::window::Window, | |
| pub event_loop: RefCell<winit::event_loop::EventLoop<()>>, | |
| pub test: i32, |