Skip to content

Instantly share code, notes, and snippets.

View seongyooncho's full-sized avatar
🎯
Focusing

Seongyoon Cho seongyooncho

🎯
Focusing
View GitHub Profile
@seongyooncho
seongyooncho / convert.py
Created February 23, 2025 06:26
Extract body weight from Apple Health Export and save to csv.
import xml.etree.ElementTree as ET
import csv
from datetime import datetime
def export_body_mass_to_csv(xml_file, csv_file):
context = ET.iterparse(xml_file, events=("end",))
with open(csv_file, 'w', newline='', encoding='utf-8') as f:
writer = csv.writer(f)
writer.writerow(['Date', 'Weight'])

MotionScoreServer Documentation

MotionScoreServer는 C++로 작성된 간단한 HTTP 서버로, 오버레이 제어와 운동 시작/종료 요청을 처리합니다.

서버 실행

빌드된 실행 파일인 MotionScoreServer를 실행하면 서버가 자동으로 포트 8080에서 시작됩니다.

./MotionScoreServer
@seongyooncho
seongyooncho / mems.md
Last active January 22, 2020 02:38
mems

bool setAngle(double x, double y, long timeout)

Set angle of MEMS mirrors. It returns when MEMS mirror finishes targeting. This method is synchronous.

  • Return value: true when setting angle successfully, false when timeout occured or otherwise.
  • x: Radian angle in x axis.
  • y: Radian angle in y axis.
  • timeout: timeout in microseconds.

(Optional) bool getAngle(double& x, double& y)

Return current angle of MEMS mirrors. This method synchronous.

  • Return value: true when getting angle successfully, false otherwise.
import time
import numpy as np
a = np.zeros((1080 * 4, 1920, 3))
last_time = time.time() * 1000
for i in range(1000) :
np.save('{}.npy'.format(i), a)
now = time.time() * 1000
auto node = ClippingRectangleNode::create(Rect(-100, -100, 200, 200));
auto sprite = Sprite::create("HelloWorld.png");
node->addChild(sprite);
[
{
"title":"Shawshank Redemption",
"category_id":1,
"synopsis":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim venom",
"thumbnail_image_url":"http://lge.com/sdk/shawshank_redemption_thumbnail.jpg",
"full_image_url":"http://lge.com/sdk/shawshank_redemption_full.jpg",
"video_url":"http://lge.com/sdk/shawshank_redemption_video.mp4"
},
{

Unity 에서 Android system language 가져오기

  1. Unity 내부 함수 사용

    string systemLanguage = Application.systemLanguage.ToString();
  2. AndroidJavaObject 사용

    #if UNITY_ANDROID

AndroidJavaObject locale = new AndroidJavaClass("java/util/Locale").CallStatic("getDefault");

Game console

What we will learn

Overview

August 4, 2014

  • [11:20 - 12:00] Merge updates, set mark location, perform tracking without ptam, add some buttons.
  • [14:50 - 15:20] Init scene, add semi-transparent box, translate camera
  • [15:40 - 16:40] Rotate camera #1
  • [16:50 - 17:15] Rotate camera #2
  • [17:55 - 18:20] Rotate camera #3
  • Total 180 mins

August 5, 2014

  • [10:30 - 10:40] Change capture resolution to 1920x1080