Skip to content

Instantly share code, notes, and snippets.

View soulduse's full-sized avatar
💭
🔥

Programming Zombie soulduse

💭
🔥
View GitHub Profile

개인정보 처리방침 (Privacy Policy)

최종 수정일: 2025년 10월 2일

스레디오 (Thradio) 개인정보 처리방침

스레디오(이하 "본 확장 프로그램")는 사용자의 개인정보를 소중히 여기며, 최소한의 데이터만 수집하고 모든 데이터를 사용자의 기기 내에만 저장합니다.


ADS에 광고 이미지 권장사이즈

1200x628, 1200x1500, 1200x1200

적당한 이미지를 제작 후 권장 사이즈에 맞춰서 다양한 사이즈의 이미지를 생성합니다.

사용 방법

  1. images 폴더 생성
  2. images에 초안 이미지 넣기
  3. 스크립트 실행
  4. 결과물을 resized_images폴더에서 확인한다.

사용방법

  1. 해당 파이썬 파일(add_translation.py)을 Android 프로젝트 root 디렉토리(최상단)에 생성한다.
  2. 본인이 번역하고자 하는 언어에 맞게 아래 부분을 수정한다.
languages = ['en', 'ar', 'de', 'es', 'fr', 'it', 'ja', 'ko', 'zh-rTW', 'zh']
  1. ChatGPT로 이동하여 위 prompt.txt 내용을 복붙하여 입력합니다.
@soulduse
soulduse / build.gradle.kts
Created December 13, 2020 03:13
Root Gradle 설정
val projectGroup: String by project
val projectVersion: String by project
val kotlinVersion: String by project
val ktlintVersion: String by project
plugins {
val kotlinVersion = "1.4.10"
kotlin("jvm") version kotlinVersion
kotlin("kapt") version kotlinVersion
}
@soulduse
soulduse / blog-post.kt
Created August 25, 2019 06:12
Open app or go to the google play store market in Android with Kotlin
// 앱이 설치 설치되었는지 판단하는 함수
fun Context.isInstalledApp(packageName: String): Boolean {
val intent = packageManager.getLaunchIntentForPackage(packageName)
return intent != null
}
// 특정 앱을 실행하는 함수
fun Context.openApp(packageName: String) {
val intent = packageManager.getLaunchIntentForPackage(packageName)
startActivity(intent)
@soulduse
soulduse / Sort.kt
Last active July 5, 2019 01:00
How to sort based on/compare multiple values in Kotlin?
class SortTest {
@Test
fun `sorting`() {
DUMMY.sortedWith(
compareByDescending<SortItem> { it.bool }
.thenBy { it.num }
.thenBy { it.date }
.thenBy { it.name }
).print()
@soulduse
soulduse / HmacGenerator.kt
Created April 11, 2019 08:24
HmacGenerator for Coupang partners with Kotlin
import org.apache.commons.codec.binary.Hex
import java.nio.charset.Charset
import java.security.GeneralSecurityException
import java.text.SimpleDateFormat
import java.util.*
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
object HmacGenerator {
@soulduse
soulduse / AndroidManifest.xml
Last active October 24, 2018 09:47
When I copied some text in Android, How to get copied text from listener.
<application ...>
...
<service android:name=".ClipboardService"/>
</application>
@soulduse
soulduse / AndroidManifest.xml
Last active October 22, 2018 05:49
Auto launch apps randomly.
<application .. >
...
<service android:name=".StartAppService"/>
</application>
@soulduse
soulduse / DLog.kt
Last active September 12, 2018 05:48
This is log util for Android. You don't need TAG and care about showing log after released.
/**
* Usage
* DLog.w("This is awesome!")
*
* print -> W/Dave: [xx.kt::methodName]This is awesome!
*/
object DLog {
private const val TAG : String = "Dave"
fun e(message : String){