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
| echo hello world > hello-ed.txt | |
| ed ./hello-ed.txt <<-S | |
| %s/hello/hi | |
| a | |
| good bye | |
| . | |
| wq | |
| S |
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
| Texture2D tex_scene : register(t0, space2); | |
| SamplerState sam_scene : register(s0, space2); | |
| struct Input { | |
| float4 tex_color : COLOR0; | |
| float2 tex_coord : TEXCOORD0; | |
| }; | |
| struct Output { | |
| float4 frag_color : SV_Target; |
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
| Texture2D scene : register(t0, space2); | |
| SamplerState sampler0 : register(s0, space2); | |
| // Scalar uniforms passed from Ruby via `uniforms: [{ name:, value:, type: }, ...]`. | |
| // Members must match the array order. Fragment uniform buffers live in space3 | |
| // (b registers) for SDL_shadercross HLSL. | |
| cbuffer Uniforms : register(b0, space3) { | |
| int tick_count; | |
| float time; | |
| }; |
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
| Texture2D scene : register(t0, space2); | |
| SamplerState sampler0 : register(s0, space2); | |
| // Scalar uniforms passed from Ruby via `uniforms: [{ name:, value:, type: }, ...]`. | |
| // Members must match the array order. Fragment uniform buffers live in space3 | |
| // (b registers) for SDL_shadercross HLSL. | |
| cbuffer Uniforms : register(b0, space3) { | |
| int tick_count; | |
| float time; | |
| }; |
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
| class OnScreenGamepad | |
| attr :inputs, :directional_vector, :directional_angle, :dpad_vector | |
| def initialize inputs, side: :left | |
| @side = side | |
| @inputs = inputs | |
| end | |
| def tick | |
| if finger |
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
| class Game | |
| attr :camera | |
| def initialize world_data | |
| @world_data = world_data | |
| @player = Player.new @world_data.player.ordinal_x, | |
| @world_data.player.ordinal_y | |
| @tiles = @world_data.tiles | |
| @walls = @world_data.walls | |
| @spikes = @world_data.spikes |
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 ruby | |
| require "optparse" | |
| require "tty-prompt" | |
| require_relative "lib" | |
| ARGV.delete("--") | |
| options = {} | |
| OptionParser.new do |opts| |
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
| # Copyright 2025 Scratchwork Development LLC. All right reserved. | |
| require 'app/command.rb' | |
| require 'app/command_button.rb' | |
| require 'app/location_button.rb' | |
| require 'app/player_slash.rb' | |
| require 'app/player_stab.rb' | |
| require 'app/player_air_slash.rb' | |
| require 'app/player_lightning.rb' | |
| require 'app/player_move.rb' |
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
| xcodebuild -version | |
| brew install cmake | |
| brew install ninja | |
| rm -rf ./llvm-project | |
| git clone --depth 1 --branch release/19.x git@github.com:llvm/llvm-project.git | |
| cd llvm-project | |
| mkdir build | |
| cd build | |
| cmake ../llvm \ | |
| -DCMAKE_BUILD_TYPE=Release \ |
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
| cd YOUR_DR_DIRECTORY | |
| # ============================================ | |
| # Download command line tools | |
| # ============================================ | |
| rm -rf ./.android | |
| mkdir ./.android | |
| wget --directory-prefix=./.android https://dl.google.com/android/repository/commandlinetools-mac-7583922_latest.zip | |
| cd ./.android | |
| unzip -o ./commandlinetools-mac-7583922_latest.zip |