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
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
#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
#!/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
"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
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
// 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
#!/bin/sh | |
# CSV file line example: | |
# [email protected],PASSWORD | |
if [ -z "$1" ] | |
then | |
echo "CSV file is not specified!" | |
exit 1 | |
fi |
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 ask askcc append dot save crt | |
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via D$ | |
account forcron { | |
set smtp-use-starttls | |
set ssl-verify=ignore | |
set smtp-auth=login | |
set smtp=smtp://example.com:587 | |
set from="Email Address <[email protected]>" | |
set smtp-auth-user=USERNAME |
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 Foundation | |
import UIKit | |
extension CGImage { | |
public var cvPixelBuffer: CVPixelBuffer? { | |
let attrs = [ | |
kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue, | |
kCVPixelBufferCGBitmapContextCompatibilityKey: kCFBooleanTrue, | |
kCVPixelBufferMetalCompatibilityKey: kCFBooleanTrue | |
] as CFDictionary |