Skip to content

Instantly share code, notes, and snippets.

@f2janyway
f2janyway / compare_pt_onnx_openvino.py
Last active October 4, 2025 09:51
compare model extensions (pt,onnx,bin(openvino))
import cv2
from ultralytics import YOLO
import time
import os
from collections import deque
from pathlib import Path
# Put these files in same dir for easy testing
# - compare_pt_onnx_openvino.ipynb
# - best.pt
@f2janyway
f2janyway / rpi_u-boot_build_process.md
Created September 9, 2025 00:56
rasberry pi u-boot build process

u-boot process

  • in u-boot root-dir
make distclean
ls
ls -al
ls
cd boot
ls
make rpi_arm64_defconfig
@f2janyway
f2janyway / pip_conda_usage.md
Last active April 30, 2025 07:10
pip, conda 관련 다루면서 생기는 문제들 관련 정보모음(정리 잘 안됨)

pip 패키지 설치 확인

pip list | grep -E "mecab|g2pkk"
pip list | grep mecab-python3
pip list | grep unidic-lite

Jupyter 커널 등록

@f2janyway
f2janyway / mac_m1_kmp_ios_build_issue_solved.md
Last active August 31, 2024 08:11
Build failed on iosApp of KMP project by "Command PhaseScriptExecution failed with a nonzero exit code"

It shows "Unable to locate a Java Runtime"

This answer from gpt solved the issue.

my kdoctor all checked already

Answer

The error you're encountering, "Unable to locate a Java Runtime," suggests that the build script requires Java to be available, but Xcode isn't able to find the Java installation. This could be happening because the JAVA_HOME environment variable isn't correctly set in the context of Xcode, or Xcode can't access Java due to a configuration issue.

@f2janyway
f2janyway / gh_pr.md
Last active April 25, 2024 06:14
gh pr 사용법
  1. checkout to other branch[temp]
  2. edit code
  3. commit at [temp]
  4. gh pr create >>> at [temp]

  5. write others(promps appear)
  6. git checkout main
  7. gh pr list >>> check pr

  8. gh pr view ID(from 7) >>> view pr

  9. >gh pr merge ID >>> if merge want
@f2janyway
f2janyway / FixedBGHorizontalPager.kt
Created November 17, 2023 14:22
fixed background of page of horizontalPager of Jetpack Compose example
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
@f2janyway
f2janyway / UIStackViewChildLayout_Ex.swift
Created November 2, 2023 07:21
UIStackView 자리 배치 및 스트래칭
/**
stackview:[label1, <-label2->, label3] ex
*/
let label1 = UILabel()
label1.text = "label1"
label1.backgroundColor = .brown
let label2 = UILabel()
label2.backgroundColor = .lightGray
label2.text = "label2"
@f2janyway
f2janyway / ScrollBar.kt
Last active August 7, 2025 06:48
ScrollBar for LazyColumn; if there is wrapper to LazyColumn(ex;Column), just use with Box() as direct above wrapper with ScrollBar and LazyColumn
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
@f2janyway
f2janyway / 주식_기간별_단가계산(평균값)_코드.md
Last active March 16, 2023 12:43
홈택스에서 안해주니까...

http://data.krx.co.kr/contents/MDC/MAIN/main/index.cmd

위의 사이트에서

해당주식검색 > 일자별 시세 > 해당 기간(조회 설정후) 설정 > 개발자모드 콘솔 > 종가 평균값계산 (아래)코드 복붙

var cnt = 0
var sum = 0
document.querySelectorAll('td').forEach((i) => {
 if (i.getAttribute('data-name') == 'TDD_CLSPRC') {
@f2janyway
f2janyway / RoundedIconButton.kt
Last active May 6, 2022 08:36
extended_floating_like_button
package brace.formation.widget
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Color
import android.graphics.ColorFilter
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.ImageView
import android.widget.LinearLayout