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
@Dabin22
Dabin22 / init
Created December 31, 2021 06:10
UIAutoScrollView(frame: frame)
import UIAutoScroll
@Dabin22
Dabin22 / ViewController.swift
Last active December 31, 2021 06:02
UIAutoScrollView Example code
import UIAutoScroll
class ViewController : UIViewController {
var autoScrollView : UIAutoScroll? = nil
override func viewDidLoad(){
super.viewDidLoad()
@Dabin22
Dabin22 / package.swift
Created December 31, 2021 05:49
UIAutoScroll
dependencies: [
.package(url: "https://github.com/visualcamp/UIAutoScroll.git")
]
@Dabin22
Dabin22 / GazeTrackerState.swift
Last active October 8, 2021 03:15
SeeSoManager-SwiftUI
import Foundation
enum GazeTrackerState {
case none
case initializing
case initialized
case initFailed
case startTracking
case stopTracking
}
@Dabin22
Dabin22 / Apple_mobile_device_types.txt
Created March 15, 2019 05:01 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
@Dabin22
Dabin22 / memory.java
Created December 20, 2018 01:19
안드로이드 메모리 관련
void printMemory() {
final Runtime runtime = Runtime.getRuntime();
final long usedMemInMB=(runtime.totalMemory() - runtime.freeMemory()) / 1048576L;
final long maxHeapSizeInMB=runtime.maxMemory() / 1048576L;
final long availHeapSizeInMB = maxHeapSizeInMB - usedMemInMB;
long nativeHeapSize = Debug.getNativeHeapSize() / 1048576L;
long nativeHeapFreeSize = Debug.getNativeHeapFreeSize() / 1048576L;
long usedNativeMemInMB = nativeHeapSize - nativeHeapFreeSize;
Log.d("Memory", "used Java Memory : " + usedMemeInMB + "MB, " + "used Native Memory : " + usedNativeMemInMB +"MB");