Skip to content

Instantly share code, notes, and snippets.

package main.scala.test
import scala.collection.mutable
// Push Mode
// as in Rx
trait Observer[-A] {
def onNext(x: Option[A]): Unit
def contramap[B](f: B=>A): Observer[B] = {
val self = this
/**
* One-shot continuation built on top of FPendingLatentAction
*/
template <class T> class FContinueAction : public FPendingLatentAction
{
bool Called;
const FName ExecutionFunction;
const int32 OutputLink;
const FWeakObjectPtr CallbackTarget;
/**
* Algebraic Effects and Handlers as in <a href='http://www.eff-lang.org/'>Eff</a>
*/
'use strict'
//
// Note:
// new Continuation() - returns the current function's continuation.
//
FGeometry ComputeMenuPlacement(const FGeometry& AllottedGeometry, const FVector2D& PopupDesiredSize, EMenuPlacement PlacementMode)
{
// Compute the popup size, offset, and anchor rect in local space
const FPopupPlacement Placement(AllottedGeometry, PopupDesiredSize, PlacementMode);
// ask the application to compute the proper desktop offset for the anchor. This requires the offsets to be in desktop space.
const FVector2D NewPositionDesktopSpace = FSlateApplication::Get().CalculatePopupWindowPosition(
TransformRect(AllottedGeometry.GetAccumulatedLayoutTransform(), FSlateRect(Placement.AnchorLocalSpace.GetTopLeft() + Placement.LocalPopupOffset, Placement.AnchorLocalSpace\
.GetBottomRight() + Placement.LocalPopupOffset)),
TransformVector(AllottedGeometry.GetAccumulatedLayoutTransform(), Placement.LocalPopupSize),
object Prisms {
// Sum type constructors
def left[B, C](x: B): (B=>C)=>C = {
(k) => {
k(x)
}
}
#include "IOSCamera.h"
#include "IMediaTextureSink.h"
#include "MediaTexture.h"
@interface FSampleBufferDelegate: NSObject<AVCaptureVideoDataOutputSampleBufferDelegate>
@property (assign) FIOSCamera* Target;
@end
#pragma once
#include "CoreMinimal.h"
#include "MediaTexture.h"
#include "AVFoundation/AVFoundation.h"
#include "CoreMedia/CoreMedia.h"
#include <Metal/Metal.h>
@class FSampleBufferDelegate;
// Fill out your copyright notice in the Description page of Project Settings.
#include "SighthoundRecognizerComponent.h"
#include "AppleARKitBlueprintFunctionLibrary.h"
#include "AppleARKitSession.h"
#if PLATFORM_IOS
#import <Foundation/Foundation.h>
#import <CoreMedia/CoreMedia.h>
#import <CoreVideo/CoreVideo.h>
Apr 7 07:54:05 iPhone D6UI_000[1111] <Notice>: [2018.04.07-14.54.05:434][599]LogTemp: New Timestamp 167582.664033
Apr 7 07:54:05 iPhone D6UI_000[1111] <Notice>: [2018.04.07-14.54.05:441][600]LogTemp: cars.yaml => /var/containers/Bundle/Application/B35C3FD0-D203-4712-A0DF-1EB53006E9A6/D6UI_000.app/cars.yaml
Apr 7 07:54:05 iPhone D6UI_000[1111] <Notice>: [2018.04.07-14.54.05:589][608]LogBlueprintUserMessages: [UIMap_C_1] Sun direction: P=196.459335 Y=104.594971 R=0.000000
Apr 7 07:54:05 iPhone D6UI_000[1111] <Notice>: Created a hitchy pipeline state for hash 4000000000049000000000b733194b5 (this = 0x13b7a5a00)
Apr 7 07:54:05 iPhone D6UI_000(CFNetwork)[1111] <Notice>: Task <42FAADA6-8045-47AC-8337-D29AAA6C0E48>.<0> received response, status 200 content K
Apr 7 07:54:05 iPhone D6UI_000(CFNetwork)[1111] <Notice>: Task <42FAADA6-8045-47AC-8337-D29AAA6C0E48>.<0> response ended
Apr 7 07:54:05 iPhone D6UI_000[1111] <Notice>: [2018.04.07-14.54.05:684][613]LogVaRest: On process request complete https://maps.googl
const Connected = {};
function removeUser(conferenceId, uid, ws)
{
const Conf = Connected[conferenceId];
const a = Conf[uid];
if (a.length == 1) {
if (Conf.numParticipants == 1) {
delete Connected[conferenceId];
} else {