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
#!/bin/sh | |
# CSV file line example: | |
# some.name@domain.com,PASSWORD | |
if [ -z "$1" ] | |
then | |
echo "CSV file is not specified!" | |
exit 1 | |
fi |
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
// "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 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 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@example.com>" | |
set smtp-auth-user=USERNAME |
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 Foundation | |
import UIKit | |
extension CGImage { | |
public var cvPixelBuffer: CVPixelBuffer? { | |
let attrs = [ | |
kCVPixelBufferCGImageCompatibilityKey: kCFBooleanTrue, | |
kCVPixelBufferCGBitmapContextCompatibilityKey: kCFBooleanTrue, | |
kCVPixelBufferMetalCompatibilityKey: kCFBooleanTrue | |
] as CFDictionary |
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
"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 emrahgunduz@10.0.1.29 |
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
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 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 asyncio | |
import json | |
import threading | |
from aiohttp import web | |
def healthcheck_response ( data, *, text=None, body=None, status=200, reason=None, headers=None, content_type="application/json", dumps=json.dumps ): | |
return web.json_response( | |
data, | |
text=text, |
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
from __future__ import annotations | |
from typing import Union | |
import os | |
import uuid | |
import json | |
from datetime import datetime | |
from threading import Lock | |
class Log( object ): |
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
from threading import Lock | |
import time | |
class Took: | |
def __init__ ( self ): | |
self.__lock = Lock() | |
with self.__lock: | |
self.__start = time.time() | |
self.__total = time.time() |