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
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "ExpoKid.h" | |
#include "JavascriptCaller.h" | |
#include <string> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <algorithm> | |
UJavascriptCaller::UJavascriptCaller(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) |
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
length = 50 | |
n = 2 | |
first_numerator = 3 | |
first_denominator = 1 | |
second_numerator = 8 | |
second_denominator = 3 | |
result = [] | |
for i in xrange(length): | |
x = n |
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
"C:\Program Files (x86)\Epic Games\4.14\Engine\Extras\ThirdPartyNotUE\DeltaCopy\Binaries\ssh.exe" -i '/cygdrive/D/Unreal/HitMe/Packer/Provision/ios/RemoteToolChainPrivate.key' -p 22 [email protected] |
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 | |
#add routes for secondary IP addresses | |
MAC_ADDR=$(ifconfig eth0 | sed -n 's/.*ether \([a-f0-9:]*\).*/\1/p') | |
IP=($(curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/$MAC_ADDR/local-ipv4s)) | |
for ip in ${IP[@]:1}; do | |
echo "Adding IP: $ip" | |
ip addr add dev eth0 $ip/20 | |
done |
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 "HitMe.h" | |
#include "PackageDownloader.h" | |
#include "IPlatformFilePak.h" | |
#include "HitMeSingleton.h" | |
UPackageDownloader* UPackageDownloader::GetPackageDownloader(FString PackageName, FString URL, bool& IsValid) | |
{ | |
IsValid = false; | |
UPackageDownloader *Object = NewObject<UPackageDownloader>(); |
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
static EImageFormat::Type GetJoyImageFormat(EJoyImageFormats JoyFormat) | |
{ | |
switch (JoyFormat) { | |
case EJoyImageFormats::JPG: return EImageFormat::JPEG; | |
case EJoyImageFormats::PNG: return EImageFormat::PNG; | |
case EJoyImageFormats::BMP: return EImageFormat::BMP; | |
case EJoyImageFormats::ICO: return EImageFormat::ICO; | |
case EJoyImageFormats::EXR: return EImageFormat::EXR; | |
case EJoyImageFormats::ICNS: return EImageFormat::ICNS; | |
} |
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
// (c) 2016 Markakod | |
#include "HitMe.h" | |
#include "WebImageDownloader.h" | |
UWebImageDownloader* UWebImageDownloader::GetWebImageDownloader(FString WebImageName, FString URL, bool& IsValid) | |
{ | |
IsValid = false; | |
UWebImageDownloader *Object = NewObject<UWebImageDownloader>(); |
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
// "self" in here is an UIView that contains some images inside. | |
{ | |
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; | |
UIVisualEffectView *blurredEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; | |
CGRect frame = self.frame; | |
frame.origin = CGPointMake (0, 0); | |
blurredEffectView.frame = frame; | |
[self addSubview:blurredEffectView]; |
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
import UIKit | |
import PlaygroundSupport | |
let generalFrame = CGRect(x: 0, y: 0, width: 500, height: 500) | |
let containerView = UIView(frame: generalFrame) | |
containerView.backgroundColor = UIColor.black; | |
PlaygroundPage.current.liveView = containerView | |
let parentView = UIView(frame: generalFrame) |
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
import UIKit | |
class ViewController: UIViewController { | |
func addTheBlurView(data :Data) { | |
let generalFrame = self.view.bounds; | |
let parentView = UIView(frame: generalFrame) | |
self.view.addSubview(parentView) |