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
| -- mod-version:3 | |
| local syntax = require "core.syntax" | |
| --[[ | |
| Here is the list of all pattern types which could be used in themes: | |
| normal | |
| symbol | |
| comment | |
| keyword |
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
| package main | |
| import "core:fmt" | |
| States :: enum { | |
| initial, | |
| state_1, | |
| state_final, | |
| } |
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
| # pip install fpdf | |
| from fpdf import FPDF | |
| # List of JPEG image filenames | |
| image_filenames = [ | |
| "1.jpeg", | |
| "2.jpeg", | |
| "3.jpeg", | |
| "4.jpeg", | |
| ] # Replace with your image filenames |
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
| local style = require "core.style" | |
| local common = require "core.common" | |
| style.background = { common.color "#f5f5f5" } -- Docview | |
| style.background2 = { common.color "#e0e0e0" } -- Treeview | |
| style.background3 = { common.color "#e0e0e0" } -- Command view | |
| style.text = { common.color "#333333" } | |
| style.caret = { common.color "#0078D7" } | |
| style.accent = { common.color "#0078D7" } | |
| style.dim = { common.color "#a0a0a0" } |
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
| package main | |
| // odin run dynamic_from_static.odin -file | |
| import "core:fmt" | |
| import "core:slice" | |
| MY_STATIC_ARRAY_LENGTH :: 6 | |
| MY_STATIC_ARRAY: [MY_STATIC_ARRAY_LENGTH]int |
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
| package fib | |
| // odin run fib.odin -file | |
| // odin run fib.odin -file -o:speed | |
| // odin run fib.odin -file -o:aggressive | |
| import "core:fmt" | |
| import "core:time" | |
| print :: fmt.println |
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
| const w4 = @import("wasm4.zig"); | |
| pub const Input = struct { | |
| previous_frame_gamepad: u8, | |
| current_frame_gamepad: u8, | |
| previous_frame_mouse: u8, | |
| current_frame_mouse: u8, | |
| previous_frame_mouse_x: i16, |