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
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 |
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
/** | |
* 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; |
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
/** | |
* 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. | |
// |
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
object Prisms { | |
// Sum type constructors | |
def left[B, C](x: B): (B=>C)=>C = { | |
(k) => { | |
k(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
#include "IOSCamera.h" | |
#include "IMediaTextureSink.h" | |
#include "MediaTexture.h" | |
@interface FSampleBufferDelegate: NSObject<AVCaptureVideoDataOutputSampleBufferDelegate> | |
@property (assign) FIOSCamera* Target; | |
@end |
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
#pragma once | |
#include "CoreMinimal.h" | |
#include "MediaTexture.h" | |
#include "AVFoundation/AVFoundation.h" | |
#include "CoreMedia/CoreMedia.h" | |
#include <Metal/Metal.h> | |
@class FSampleBufferDelegate; |
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 "SighthoundRecognizerComponent.h" | |
#include "AppleARKitBlueprintFunctionLibrary.h" | |
#include "AppleARKitSession.h" | |
#if PLATFORM_IOS | |
#import <Foundation/Foundation.h> | |
#import <CoreMedia/CoreMedia.h> | |
#import <CoreVideo/CoreVideo.h> |
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
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 |
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
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 { |
OlderNewer