Skip to content

Instantly share code, notes, and snippets.

View bsscco's full-sized avatar
๐Ÿ 
Working from home

Booseol Shin bsscco

๐Ÿ 
Working from home
View GitHub Profile
// Copyright 2023 Google LLC.
// SPDX-License-Identifier: Apache-2.0
/**
* State holder for DropDownCheckBoxMenu
*/
class DropDownCheckboxMenuState(
var items: List<String>,
) {
// Internal set of selected items managed by wrapper
@SuperPaintman
SuperPaintman / npm-f3-install.sh
Last active April 14, 2025 18:18
NPM install for low RAM machins. And "npm install ... killed" problem
#!/bin/bash
#
# Author: SuperPaintman <[email protected]>
#
###
# Constants
###
RETVAL=0
@haje01
haje01 / TensorFlow ์‹œ์ž‘ํ•˜๊ธฐ.md
Last active May 3, 2024 07:30
TensorFlow ์‹œ์ž‘ํ•˜๊ธฐ

ํ…์„œํ”Œ๋กœ์šฐ ์‹œ์ž‘ํ•˜๊ธฐ

๊ธ€์“ด์ด: ๊น€์ •์ฃผ([email protected])

์ด ๋ฌธ์„œ๋Š” ํ…์„œํ”Œ๋กœ์šฐ ๊ณต์‹ ํŽ˜์ด์ง€ ๋‚ด์šฉ์„ ๋ฐ”ํƒ•์œผ๋กœ ๋งŒ๋“ค์–ด์กŒ์Šต๋‹ˆ๋‹ค.


์†Œ๊ฐœ

ํ…์„œํ”Œ๋กœ์šฐ(TensorFlow)๋Š” ๊ธฐ๊ณ„ ํ•™์Šต๊ณผ ๋”ฅ๋Ÿฌ๋‹์„ ์œ„ํ•ด ๊ตฌ๊ธ€์—์„œ ๋งŒ๋“  ์˜คํ”ˆ์†Œ์Šค ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ ํ”Œ๋กœ์šฐ ๊ทธ๋ž˜ํ”„(Data Flow Graph) ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•˜์˜€์Šต๋‹ˆ๋‹ค.

@mannodermaus
mannodermaus / LoganSquareConverter.java
Last active September 16, 2021 12:28
LoganSquare Retrofit Converter
package retrofit.converter;
import com.bluelinelabs.logansquare.LoganSquare;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
import retrofit.converter.ConversionException;
import retrofit.converter.Converter;
@polbins
polbins / README.md
Last active February 29, 2024 09:58
Simple RecyclerView Divider

Simple RecyclerView Divider

Simple Horizontal Divider Item Decoration for RecyclerView

    mRecyclerView.addItemDecoration(new SimpleDividerItemDecoration(
            getApplicationContext()
    	));

NOTE: Add item decoration prior to setting the adapter

@artem-zinnatullin
artem-zinnatullin / MyApp.java
Last active January 15, 2023 13:04
If you need to set one font for all TextViews in android application you can use this solution. It will override ALL TextView's typefaces, includes action bar and other standard components, but EditText's password font won't be overriden.
public class MyApp extends Application {
@Override
public void onCreate() {
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf
}
}
@benelog
benelog / Volley.md
Last active October 20, 2023 02:05
Volley ์„ค๋ช…

์•ˆ๋“œ๋กœ์ด๋“œ ๊ฐœ๋ฐœ์—์„œ ๋งŽ์€ ๋น„์ค‘์„ ์ฐจ์ง€ํ•˜๋Š” UIํŒจํ„ด์€ ListView์—์„œ ์—ฌ๋Ÿฌ ์ด๋ฏธ์ง€๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” Activity์ž…๋‹ˆ๋‹ค. ์ „ํ˜•์ ์ธ ํ๋ฆ„์„ ์ •๋ฆฌํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค.

โ€‹1. ๋ชฉ๋ก์กฐํšŒ APIํ˜ธ์ถœ

โ€‹2. API๋ฅผ ํŒŒ์‹ฑํ•˜๊ณ  ListView์— ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด์—ฌ ์คŒ.

โ€‹3. ๊ฐ ์•„์ดํ…œ๋งˆ๋‹ค์˜ ์ด๋ฏธ์ง€ ์ฃผ์†Œ๋กœ ๋‹ค์‹œ ์„œ๋ฒ„๋ฅผ ํ˜ธ์ถœ

โ€‹4. ์ด๋ฏธ์ง€๋ฅผ ๋””์ฝ”๋”ฉํ•˜๊ณ  ImageView์—์„œ ๋ณด์—ฌ์คŒ.

@acidsound
acidsound / WebApp.java
Created October 25, 2011 16:57
Android Web App ๋งŒ๋“ค๋•Œ ๊ณ ๋ คํ•  ๊ฒƒ๋“ค
Android Web App ๋งŒ๋“ค๋•Œ ๊ณ ๋ คํ•  ๊ฒƒ
- ์ตœ์ข… ๋‹จ๊ณ„์—์„œ <application android:debuggable="false"> ๋””๋ฒ„๊ทธ ๊ธฐ๋Šฅ ๋ฌดํšจํ™”
- ํšŒ์ „์‹œ ํ™”๋ฉด ๊ฐฑ์‹  ๋ฌธ์ œ
activity ์— android:configChanges="keyboardHidden|orientation" ์ถ”๊ฐ€
- ํ™”๋ฉด ํ™•๋Œ€ ์ถ•์†Œ ๊ธˆ์ง€ : <m-ta name="viewport" content="user-scalable=no, width=device-width" />
- ๊ธฐ๊ธฐํ•ด์ƒ๋„๋ณ„ ์Šคํƒ€์ผ ์‹œํŠธ ์ ์šฉ
<link rel="stylesheet" type="text/css" href="wvga.css" media="screen and (min-width: 480px)" />
<link rel="stylesheet" type="text/css" href="qvga.css" media="screen and (min-width: 320px)" />
- webkit ์œผ๋กœ ์‹œ์ž‘ํ•˜๋Š” css๋ฅผ ์ ๊ทน์ ์œผ๋กœ ์‚ฌ์šฉ
-webkit-border-top-left-radius: 8px;