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 "MinimapUserWidget.h" | |
#include "Kismet/GameplayStatics.h" | |
FVector2D UMinimapUserWidget::GetImageCoordsFromWorldLoc(FVector WorldLoc) const | |
{ | |
// Image coordinate system in UMG is: | |
// 0,0 ------> +x | |
// | | |
// | | |
// | |
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
#!/bin/bash | |
############################################################################## | |
# Workaround for Dropbox daemon | |
# ----------------------------- | |
# Verified on Dropbox v77.4.131 | |
# Just make it executable (if need, using | |
# $ chmod a+x fix_dropbox | |
# ) and run it. | |
# Author: Здравко | |
# www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790 |
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 "AndroidPermissionFunctionLibrary.h" | |
#include "AndroidPermissionCallbackProxy.h" | |
void SomeFuncWhereYouNeedPermissions() | |
{ | |
#if PLATFORM_ANDROID | |
// If we don't have the permission | |
if (!UAndroidPermissionFunctionLibrary::CheckPermission(TEXT("android.permission.RECORD_AUDIO"))) | |
{ | |
// Build an array of permissions to request |
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
#Plow through all images in the folder | |
#Write a tracking number in the top left corner | |
#Save a text file that shows the original filename and the | |
#tracking number. | |
from PIL import Image | |
from PIL import ImageFont | |
from PIL import ImageDraw | |
import glob, os | |
import random |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration"> | |
<VCProjectFileGenerator> | |
<Version>VisualStudio2017</Version> | |
</VCProjectFileGenerator> | |
<WindowsPlatform> | |
<Compiler>VisualStudio2017</Compiler> | |
</WindowsPlatform> | |
</Configuration> |
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
!r : MathLib.compose_rotators(GameLib.player_controller.control_rotation, RotationAngles!yaw_pitch_roll(0 0 10)) | |
GameLib.player_controller.control_rotation_set(r) | |
// | |
// Queen | |
// | |
// Print all the data we need to recreate the queen at her current translation/rotation/scale | |
BP_Queen.instances_first.transform | |
// Move the queen 100 world units to the right |
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
# Used to generate text to post in the description of a Flickr | |
# group for a 52 week photo challenge. | |
# | |
# It will generate text like this: | |
# Week 01: 01-01 - 01-07 | |
# Week 02: 01-08 - 01-14 | |
# Week 03: 01-15 - 01-21 | |
# For an entire year. | |
from datetime import date, timedelta |
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
/** | |
* @OnlyCurrentDoc | |
*/ | |
kvString = "=KV("; | |
kvaString = "=KVA("; | |
/** | |
* A special function that runs when the spreadsheet is open, used to add a | |
* custom menu to the spreadsheet. |
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
// This code is meant to be placed in a Player Camera Manager | |
// ScreenX - screen space coordinate from [-1, 1] left to right that you want to find the world location of | |
// ScreenY - screen space coordinate from [-1, 1] top to bottom that you want to find the world location of | |
// OutWorldLocation - The vector to put the resulting world location in | |
// OutWorldDirection - The vector to put the resulting world direction in | |
// Controller - Controller to use for deprojection | |
// ViewportSize - The size of the viewport | |
bool APlayerCameraManager::DeprojectScreenSpaceToWorld(float ScreenX, float ScreenY, FVector& OutWorldLocation, FVector& OutWorldDirection, APlayerController* Controller, const FVector2D ViewportSize) const | |
{ |
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
from PIL import ImageGrab | |
from PIL import ImageStat | |
from phue import Bridge | |
from time import sleep | |
import time | |
import math | |
import zachhue | |
import colorsys | |
width = 1920 |
NewerOlder