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_name PlayerAttackState | |
| extends PlayerState | |
| func enter(_opts := {}) -> void: | |
| var player: Player = entity as Player | |
| if player.equipped_weapon == null or player.weapon_hitbox_scene == null: | |
| return | |
| var hitbox := player.weapon_hitbox_scene.instantiate() as WeaponHitbox | |
| get_tree().current_scene.add_child(hitbox) |
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
| source 'https://rubygems.org' | |
| gem 'ratatui_ruby' |
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
| let rec power x n = | |
| match n with | |
| | 0 -> 1 | |
| | _ -> x * (power x (n - 1)) | |
| let powersOfTwo n = | |
| let rec loop acc d = | |
| match d with | |
| | 0 -> acc | |
| | x -> loop (acc @ [power 2 x]) (x - 1) |
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
| void AAuraEffectActor::OnOverlap(AActor* TargetActor) | |
| { | |
| // ... original code here... | |
| // For each of the EEffectApplicationPolicy::ApplyOnOverlap, apply effect to the target | |
| for (const auto& EffectPolicy : FilterApplicationGameplayEffects(EEffectApplicationPolicy::ApplyOnOverlap)) | |
| { | |
| ApplyEffectToTarget(TargetActor, EffectPolicy.Key); | |
| } | |
| } |
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
| 📜 🔤request.emojic🔤 | |
| 🏁 🍇 | |
| 🆕🗺️ 🔤jsonplaceholder.typicode.com🔤 🔤/todos/1🔤❗ ➡️ request | |
| 🆗 🚀request❗ 🍇 | |
| 💪request❗ ➡️ body | |
| 😀 body❗ | |
| 🍉 | |
| 🙅 error 🍇 |
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
| 📜 🔤customer.emojic🔤 | |
| 📜 🔤astronaut.emojic🔤 | |
| 📜 🔤credit_card.emojic🔤 | |
| 📜 🔤helpers.emojic🔤 | |
| 🏁 ➡️ 🔢 🍇 | |
| 🆕💳 🔤48829284848291🔤 🔤12/24🔤 🔤512🔤❗ ➡️ 🖍️🆕customer_credit_card | |
| 🆕💳 🔤84562234578543🔤 🔤05/27🔤 🔤854🔤❗ ➡️ astronaut_credit_card | |
| 🆕👩💼 🔤Frank🔤 🔤Williams🔤 customer_credit_card❗ ➡️ customer |
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 std::path::Path; | |
| use crate::types::Result; | |
| /// Struct to store command line arguments | |
| pub struct Args { | |
| filepath: String, | |
| contents: String, | |
| append: bool, | |
| truncate: bool, |
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
| #include "LTexture.h" | |
| LTexture::~LTexture() | |
| { | |
| Free(); | |
| } | |
| LTexture::LTexture(const LTexture& other) | |
| : mWidth(other.mWidth) | |
| , mHeight(other.mHeight) |
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
| require "json" | |
| module Gw2Api | |
| struct Bank | |
| include JSON::Serializable | |
| # The item's ID. | |
| getter id : UInt32 | |
| # The amount of items in the item stack. |
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
| function Service:SetProfile(player: Player, key: string, value: any) | |
| DataManager:Set(player, key, value) | |
| self.Client.FetchStoreAction:Fire(player, { type = ReducerActions.UPDATE_PLAYER_PROFILE }) | |
| end |
NewerOlder