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
// Copyright Illia Komsa 2022. All rights reserved. | |
#include "GameFramework/GameModeBase.h" | |
#include "GameFramework/PlayerState.h" | |
#include "Kismet/GameplayStatics.h" | |
#include "GameLiftGameModeExample.generated.h" | |
/** | |
* An example PlayerSession class, that adds property to store PlayerSessionId | |
*/ | |
UCLASS(Abstract) |
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
$credentials="<github_access_token>" | |
$repo = "<user_or_org>/<repo_name>" | |
$file = "<name_of_asset_file>" | |
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
$headers.Add("Authorization", "token $credentials") | |
$releases = "https://api.github.com/repos/$repo/releases" | |
Write-Host Determining latest release | |
$id = ((Invoke-WebRequest $releases -Headers $headers | ConvertFrom-Json)[0].assets | where { $_.name -eq $file })[0].id |
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
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import PropTypes from 'prop-types' | |
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap' | |
const ConfirmationModal = props => { | |
return ( | |
<Modal isOpen={true} toggle={props.onNo} backdrop={true}> | |
<ModalHeader toggle={props.onNo}>{props.title}</ModalHeader> |
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
acf.add_filter('validation_complete', function( json, $form ){ | |
// Return early if there are no errors. | |
// This will avoid the dreded "isArrayLike empty obj error" | |
// https://github.com/jquery/jquery/issues/2242 | |
if ( 0 === json.errors ) { | |
return json; | |
} | |
// show field error messages |