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
| Get-ChildItem c:\wooyeongc-dev\Plugins\Mercuna -Recurse -Force | | |
| ForEach-Object -Process { | |
| p4 reopen -c default "$($PSItem.FullName)" | |
| } |
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
| FCircularSector::FCircularSector() {} | |
| FCircularSector::FCircularSector(const FVector& Center, float YawAngle, float ConeHalfAngle, float Near, float Far) | |
| : m_Center(Center), m_Yaw(YawAngle), m_HalfAngle(ConeHalfAngle), m_Near(Near), m_Far(Far) | |
| { | |
| } | |
| bool FCircularSector::Contains(const FVector& Location) const | |
| { | |
| return CheckToContain(m_Near, m_Far, Location - m_Center, m_HalfAngle, m_Yaw); |
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
| bool GetActorPosInScreenSpace(const APlayerController* Player, const AActor& Actor, FVector2D& OutScreenPos) | |
| { | |
| FVector WorldPosition = Actor->GetActorLocation(); | |
| ULocalPlayer* const LP = Player ? Player->GetLocalPlayer() : nullptr; | |
| if (LP && LP->ViewportClient) | |
| { | |
| // get the projection data | |
| FSceneViewProjectionData ProjectionData; | |
| if (LP->GetProjectionData(LP->ViewportClient->Viewport, eSSP_FULL, /*out*/ ProjectionData)) | |
| { |
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
| bool IsInFrustum(AActor* Actor) | |
| { | |
| ULocalPlayer* LocalPlayer = Actor->GetWorld()->GetFirstLocalPlayerFromController(); | |
| if (LocalPlayer != nullptr && LocalPlayer->ViewportClient != nullptr && LocalPlayer->ViewportClient->Viewport) | |
| { | |
| FSceneViewFamilyContext ViewFamily(FSceneViewFamily::ConstructionValues( | |
| LocalPlayer->ViewportClient->Viewport, | |
| Actor->GetWorld()->Scene, | |
| LocalPlayer->ViewportClient->EngineShowFlags) |
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
| Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-WebRequest -Uri 'https://libsdl.org/release/SDL2-devel-2.0.8-VC.zip' -OutFile '.\SDL2-devel-2.0.8-VC.zip' |
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
| // Algorism = not 'Algorithm' | |
| /* | |
| 1 < N < 100,000 | |
| 예) | |
| 입력 : abaccchhaa | |
| 결과 : b1a1c3h2a3 | |
| */ | |
| #include "stdafx.h" |
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
| 65..90 | % {md ("{0}" -f [char]$_)} |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace PrimeFactoring { | |
| class Program { | |
| static void Main (string[] args) { | |
| while (true) { | |
| Solve(int.Parse(Console.ReadLine())); |
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
| $BaseDir = "" | |
| $TargetDirName = "Tmp" | |
| Get-ChildItem $BaseDir -Include $TargetDirName -Recurse | ForEach ($_) { Remove-Item $_.fullname -Force -Recurse } |
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
| $TargetDir = "" | |
| $TargetFile = "*.txt" | |
| Get-ChildItem $TargetDir -Include $TargetFile -Recurse | ForEach ($_) { Remove-Item $_.fullname } |
NewerOlder