This file contains 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 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 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 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 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 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 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 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 |
This file contains 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
(where ident (not (identifier? ident))) (if (keyword? str-token) | |
(parsers.next text pos col 1 | |
line tokens | |
str-token | |
types.keyword) | |
(string.find str-token "^:%w*") | |
;; Match a "string" identifier i.e. :hello | |
(parsers.next text pos col 1 | |
line tokens | |
str-token |
This file contains 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 keywords (require :keywords)) | |
(local types {:arg "ARG" | |
:doc "DOCSTRING" | |
:fn "FUNC" | |
:keyword "KEYWORD" | |
:let "VARIABLE" | |
:lbracket "LBRACKET" | |
:lcurly "LCURLY" | |
:lparen "LPAREN" |
NewerOlder