Skip to content

Instantly share code, notes, and snippets.

View yamoo9's full-sized avatar
๐ŸŽ“
Blended Learning

์•ผ๋ฌด yamoo9

๐ŸŽ“
Blended Learning
  • Mentor of E.UID
  • South korea
  • X @yamoo9
View GitHub Profile
@yamoo9
yamoo9 / convert-usd-to-krw.js
Created January 7, 2026 17:41
๋‹ฌ๋Ÿฌ(usd) โ†’ ํ•œ๊ตญ ์›ํ™”๋กœ ํ™˜์‚ฐํ•œ ๊ธˆ์•ก(์ •์ˆ˜)์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ํ•จ์ˆ˜
function convertUsdToKrw(usd, exchangeRate) {
// ๋ฐ์ดํ„ฐ ์ •์ œ (๋ฌธ์ž์—ด์—์„œ ์ˆซ์ž๋งŒ ์ถ”์ถœ)
const numberUsd = parseFloat(usd)
const numberRate = parseFloat(exchangeRate)
// ๊ณ„์‚ฐ (๋‹ฌ๋Ÿฌ * ํ™˜์œจ)
const calcValue = numberUsd * numberRate
// ๋ฐ์ดํ„ฐ ๊ฐ€๊ณต (์†Œ์ˆ˜์  ์ œ๊ฑฐ ๋ฐ ์ •์ˆ˜ํ™”)
const result = parseInt(calcValue, 10)
@yamoo9
yamoo9 / thunder-collection_DummyJSON-API.json
Created July 14, 2025 19:09
Thunder Client ์ฝœ๋ ‰์…˜ - DummyJSON API
{
"clientName": "Thunder Client",
"collectionName": "DummyJSON API",
"collectionId": "193db17a-7a2c-4d60-b975-56eb254bad93",
"dateExported": "2025-07-14T19:06:22.745Z",
"version": "1.2",
"folders": [],
"requests": [
{
"_id": "4bb48847-62b7-4ae9-a433-bbd1f9cd4192",
@yamoo9
yamoo9 / Product.css
Created June 26, 2024 16:42
Product & ProductList ์Šคํƒ€์ผ๋ง
@layer components {
.Product {
--padding: 8px;
--round: 4px;
--border-weight: 0.5px;
--gap: 12px;
--color: 200, 15%, 42%;
--border-color: hsla(var(--color), 0.3);
--background-color: color-mix(in srgb, hsl(var(--color)) 2%, white 100%);
@yamoo9
yamoo9 / avatars.json
Last active June 25, 2024 20:08
Avatar ๋ฆฌ์ŠคํŠธ ๋ฐ์ดํ„ฐ
[
{
"id": "avatar-1",
"filename": "man-01",
"ext": "jpg",
"name": "๋ฐ•์„ฑ์ค€",
"isOnline": false
},
{
"id": "avatar-2",
@yamoo9
yamoo9 / search-form.html
Created June 25, 2024 18:35
๊ฒ€์ƒ‰ ํผ HTML ๋งˆํฌ์—…
<form method="get" action="/search">
<img src="search.png" alt="๋‹๋ณด๊ธฐ">
<br>
<label>
๊ฒ€์ƒ‰์–ด
<input name="term" type="search">
</label>
<button type="submit">๊ฒ€์ƒ‰</button>
</form>
@yamoo9
yamoo9 / globals.css
Created June 23, 2024 12:07
๊ธ€๋กœ๋ฒŒ ์Šคํƒ€์ผ ํŒŒ์ผ
:root {
--primary-rgb: 8, 126, 164;
--primary-rgba: var(--primary-rgb), 1;
--forground-rgb: 10, 24, 48;
--forground-rgba: var(--forground-rgb), 1;
--background-rgb: 200, 245, 255;
--background-rgba: var(--background-rgb), 0.3;
--inner-space: 8px 16px;
--spacing: 4px;
--rounded: 4px;
@yamoo9
yamoo9 / react-logo.svg
Created June 18, 2024 08:17
React ๋กœ๊ณ  (2023) SVG ํŒŒ์ผ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yamoo9
yamoo9 / bundleCSS.js
Created July 6, 2023 02:08
CSS ๋ฒˆ๋“ค๋ง ํ”„๋กœ๊ทธ๋žจ (Node.js)
import { readFile, writeFile } from 'node:fs/promises';
import { existsSync, mkdirSync } from 'node:fs';
import { resolve } from 'node:path';
import { argv } from 'node:process';
const { cssDir, entryFile, outDir, outFile } = parseOptions();
const CSS_DIR = cssDir ?? 'src';
const ENTRY_FILE = entryFile ?? 'main.css';
const OUTPUT_DIR = outDir ?? 'styles';
@yamoo9
yamoo9 / _mixins.scss
Created September 5, 2022 07:37
font ๋ฏน์Šค์ธ ์˜ˆ์‹œ
@use "sass:meta" as *;
@use "sass:list";
@use "sass:string";
@function get-value($props, $key) {
$index: list.index($props, $key);
@if $index != null {
$value: list.nth($props, $index + 1);
@return if(type-of($value) != string, $value, string.unquote($value));
} @else {
@yamoo9
yamoo9 / validator.js
Last active January 3, 2022 00:04
ํผ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ์œ ํ‹ธ๋ฆฌํ‹ฐ - validator
/* eslint-disable no-useless-escape */
/* -------------------------------------------------------------------------- */
// ์•„์ด๋”” ์ฒดํฌ ์œ ํ‹ธ๋ฆฌํ‹ฐ
// โ–ธ 5 ~ 20์ž โ€” ์˜๋ฌธ, ์ˆซ์ž ์กฐํ•ฉ
/* -------------------------------------------------------------------------- */
export const isId = (value, { min = 4, max = 19 } = {}) => {
const regExp = new RegExp(`^[a-z]+[a-z0-9]{${min},${max}}$`, 'g');
return regExp.test(value);