Skip to content

Instantly share code, notes, and snippets.

View Dabin22's full-sized avatar
🤒
Out sick

David Dabin22

🤒
Out sick
  • VisualCamp
  • YANGJAE
View GitHub Profile
import { BehaviorSubject, interval, Subscription, SchedulerLike } from 'rxjs';
import { switchMap, takeWhile, tap } from 'rxjs/operators';
class RxThread {
private intervalSubject: BehaviorSubject<number>;
private running: boolean = true;
private subscription: Subscription | null = null;
private func: () => Promise<void> | void = async () => {};
private scheduler: SchedulerLike | undefined;
private isRunningFunc: boolean = false;
@Dabin22
Dabin22 / example_blink.js
Created December 14, 2022 05:32
BlinkCallback Example code
@Dabin22
Dabin22 / sameple_camera_position.java
Created April 7, 2022 06:01
Custome Camera Position 3.0.0
CameraPosition cameraPosition = new CameraPosition("SM-T720", -72f, -4f);// Galaxy tab s5e
tracker.addCameraPosition(cameraPosition);
@Dabin22
Dabin22 / sample_3_0_0.java
Created April 7, 2022 05:54
initGazeTracker 3.0.0
public static void initGazeTracker(
Context context, String licenseKey, InitializationCallback callback)
@Dabin22
Dabin22 / sample_2_5_0.java
Created April 7, 2022 05:53
InitGaze 2.5.0
public static void initGazeTracker(
Context context, GazeDevice device, String licenseKey, InitializationCallback callback)
@Dabin22
Dabin22 / GazeTrackerSample.java
Created April 7, 2022 05:51
InitGazeTracker
public static void initGazeTracker(
Context context, GazeDevice device, String licenseKey, InitializationCallback callback)
@Dabin22
Dabin22 / set
Created December 31, 2021 06:11
setParameters(timeInterval : 30, scrollSpeed : 0.4, scrollRegion : 0.5, accelerationFactor : 1.5)
@Dabin22
Dabin22 / calc
Created December 31, 2021 06:11
autoScrollView.calcScrollDistance(gazeY : gazeInfo.y)
@Dabin22
Dabin22 / stop
Created December 31, 2021 06:10
autoScrollView.stopAutoScroll()
autoScrollView.startAutoScroll()