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 / Gridlover.markdown.md
Created February 25, 2020 14:26
Gridlover - 8pt Grid

8pt Grid

8pt κ·Έλ¦¬λ“œλ₯Ό ν™œμš©ν•΄ νƒ€μ΄ν¬κ·Έλž˜ν”Ό, μ•„μ΄μ½˜, λ ˆμ΄μ•„μ›ƒμ„ μž‘μ„±ν•˜κ³  UI λ””μžμΈμ„ μ‹œμž‘ν•΄λ³΄μ„Έμš”. 8pt κ·Έλ¦¬λ“œλ₯Ό μ‚¬μš©ν•˜λŠ” 것이 κ°€μž₯ 쒋은 μ΄μœ λŠ” 거의 λͺ¨λ“  λ””μ§€ν„Έ λ””μžμΈ ν”„λ‘œμ νŠΈ λ˜λŠ” μ œν’ˆ λ””μžμΈμ— 적용 κ°€λŠ₯ν•˜κΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.

ν”½μ…€(px)이 μ•„λ‹Œ, 포인트(pt)

iPhone XR의 λ„ˆλΉ„(width)λŠ” 414Γ—896ν”½μ…€(px)이 μ•„λ‹™λ‹ˆλ‹€. 828Γ—1792 ν”½μ…€μž…λ‹ˆλ‹€. 2λ°° 컀진 크기죠. iPhone XR은 일반 ν™”λ©΄(Regular Display)보닀 PPI(μΈμΉ˜λ‹Ή ν”½μ…€ 수)κ°€ 2배인 Retina λ””μŠ€ν”Œλ ˆμ΄λ₯Ό μ‚¬μš©ν•˜λ―€λ‘œ 2λ°° 크기둜 화면에 λ Œλ”λ§λ©λ‹ˆλ‹€. (λ„ˆλΉ„ 2λ°°, 높이 2배의 픽셀이 ν•„μš”ν•˜κΈ°μ— μ‹€μ œ ν•„μš”ν•œ ν”½μ…€ κ°œμˆ˜λŠ” 4λ°°μž…λ‹ˆλ‹€)

@yamoo9
yamoo9 / EUID.js
Last active February 23, 2020 06:37
μŠ€νƒ€λ²…μŠ€ μ‚¬μ΄νŠΈ μ• λ‹ˆλ©”μ΄μ…˜ κ°œμ„  슀크립트 (이듬 λΈ”λ Œλ””λ“œ λŸ¬λ‹ μ‹€μŠ΅ 자료)
/**
* 이듬(E.UID) 라이브러리
* λΈ”λ Œλ””λ“œ λŸ¬λ‹: yamoo9.github.io/EUID
* μž‘μ„±μž: yamoo9.naver.com
*/
var EUID = {
_version: '0.0.1',
// querySelector() = IE 9+
// μ°Έκ³ : https://caniuse.com/#feat=queryselector
@yamoo9
yamoo9 / GotoTop.js
Last active September 14, 2020 03:54
GotoTop μ»΄ν¬λ„ŒνŠΈ
// GotoTop μ»΄ν¬λ„ŒνŠΈ λͺ¨λ“ˆ
(function GotoTopComponent() {
'use strict';
// @μƒμ„±μž_ν•¨μˆ˜(ES6, class μ—­ν• )
function GotoTop(domNode, options) {
// λ¬Έμ„œκ°μ²΄λ₯Ό μ°Έμ‘°ν•˜μ—¬ μ»΄ν¬λ„ŒνŠΈ μ•ˆμ—μ„œ μ‚¬μš©ν•©λ‹ˆλ‹€.
this._button = domNode;
@yamoo9
yamoo9 / carousel.html
Created November 17, 2019 12:14
Carousel λ§ˆν¬μ—… / μŠ€νƒ€μΌλ§
@yamoo9
yamoo9 / Carousel.js
Last active November 16, 2019 02:52
일반 μΊλŸ¬μ…€(Carousel) μ»΄ν¬λ„ŒνŠΈ - λͺ¨λ“ˆ & OOJS μƒμ„±μž ν•¨μˆ˜μ™€ ν”„λ‘œν† νƒ€μž… λͺ¨λ“ˆ
@yamoo9
yamoo9 / animate.js
Created November 11, 2018 16:09
μ• λ‹ˆλ©”μ΄μ…˜ 라이브러리 animate.js ν™œμš©
(function (global) {
'use strict';
function animate(render, duration, easing, callback) {
duration = duration || 400;
easing = easing ? animate.easings[easing] : animate.easings['linear'];
var start = performance.now();
requestAnimationFrame(function _animate(time) {
var timeFraction = (time - start) / duration;
var progress = easing(timeFraction);
@yamoo9
yamoo9 / typescript.json
Last active August 17, 2018 15:44
Vue + TypeScript μ½”λ“œ μŠ€λ‹ˆνŽ«
{
"Vue TS Component": {
"prefix": "v-component",
"description": "Vue TypeScript μ»΄ν¬λ„ŒνŠΈ",
"body": [
"import Vue from 'vue';",
"import { Component${1:, Prop, Emit, Watch} } from 'vue-property-decorator';",
"",
"@Component({$3})",
@yamoo9
yamoo9 / jquery.ajax.extends.js
Last active August 3, 2018 03:26
jQuery Ajax 단좕 λ©”μ„œλ“œ - PUT / PATCH / DELETE ν™•μž₯
/*! jquery.ajax.extends.js @ 2018, yamoo9.net */
;(function(global, $) {
'use strict';
if (!$) { throw new Error('jQuery 라이브러리λ₯Ό ν˜ΈμΆœν•΄μ•Ό μ‚¬μš© κ°€λŠ₯ν•©λ‹ˆλ‹€.'); }
if ( !$.put ) {
$.put = function(api_with_id, put_data, success, fail) {
$.ajax({
method: 'PUT',
@yamoo9
yamoo9 / PathAnimate.js
Created June 8, 2018 07:16
PathAnimate.js - SVG 패슀 μ• λ‹ˆλ©”μ΄μ…˜ 라이브러리
var PathAnimate = (function(global){
'use strict';
// β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
// PRIVATE
// β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
function getLength(el) {
if(el.nodeName) {
var tagName = el.nodeName.toLowerCase(), d;
if(tagName === 'path') {
@yamoo9
yamoo9 / iphone-x-notch.html
Created June 5, 2018 01:26
iPhoneX Notch λ””μžμΈ λŒ€μ‘ 방법 (background-color / viewport-fit / safe-area-inset-*)
<!DOCTYPE html>
<html lang="ko-KR">
<head>
<meta charset="UTF-8">
<title>iPhone Notch(vμžν˜• μƒˆκΉ€μ„ λœ»ν•¨) λ””μžμΈ λŒ€μ‘λ²•</title>
<!-- μ°Έκ³ : https://goo.gl/oXuCuy -->
<!-- 방법 1. body μš”μ†Œμ˜ λ°°κ²½ 색 μ„€μ • -->
<style>