Skip to content

Instantly share code, notes, and snippets.

View kyh196201's full-sized avatar
🐣
Hi

Seungwoo Kim kyh196201

🐣
Hi
View GitHub Profile
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active December 30, 2025 02:37
λ§ˆν¬λ‹€μš΄(Markdown) μ‚¬μš©λ²•

[곡톡] λ§ˆν¬λ‹€μš΄ markdown μž‘μ„±λ²•

μ˜μ–΄μ§€λ§Œ, 쑰금 더 μƒμ„Έν•˜κ²Œ λ§ˆν¬λ‹€μš΄ μ‚¬μš©λ²•μ„ μ•ˆλ‚΄ν•˜κ³  μžˆλŠ”
"Markdown Guide (https://www.markdownguide.org/)" λ₯Ό λ³΄μ‹œλŠ” 것을 μΆ”μ²œν•©λ‹ˆλ‹€. ^^

μ•„, 그리고 λ§ˆν¬λ‹€μš΄λ§ŒμœΌλ‘œ ν‘œν˜„μ΄ λΆ€μ‘±ν•˜λ‹€κ³  λŠλΌμ‹ λ‹€λ©΄, HTML νƒœκ·Έλ₯Ό ν™œμš©ν•˜μ‹œλŠ” 것도 μ’‹μŠ΅λ‹ˆλ‹€.

1. λ§ˆν¬λ‹€μš΄μ— κ΄€ν•˜μ—¬

@nkbt
nkbt / .eslintrc.js
Last active July 21, 2025 17:55
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@PurpleBooth
PurpleBooth / README-Template.md
Last active December 31, 2025 04:34
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@paulirish
paulirish / what-forces-layout.md
Last active December 30, 2025 21:56
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@parmentf
parmentf / GitCommitEmoji.md
Last active December 16, 2025 19:51
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit πŸŽ‰ :tada:
Version tag πŸ”– :bookmark:
New feature ✨ :sparkles:
Bugfix πŸ› :bug:
@richardtorres314
richardtorres314 / flexbox.scss
Last active March 24, 2025 17:35
CSS Flexbox - Sass Mixins
// --------------------------------------------------
// Flexbox SASS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
@mixin flexbox {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
@odewahn
odewahn / error-handling-with-fetch.md
Last active November 3, 2025 07:54
Processing errors with Fetch API

I really liked @tjvantoll article Handling Failed HTTP Responses With fetch(). The one thing I found annoying with it, though, is that response.statusText always returns the generic error message associated with the error code. Most APIs, however, will generally return some kind of useful, more human friendly message in the body.

Here's a modification that will capture this message. The key is that rather than throwing an error, you just throw the response and then process it in the catch block to extract the message in the body:

fetch("/api/foo")
  .then( response => {
    if (!response.ok) { throw response }
    return response.json()  //we only get here if there is no error
 })
@igotit-anything
igotit-anything / favicon.html
Created September 6, 2016 14:57
favicon expression on the web browser.
<head>
<link rel="shortcut icon" href="myicon.ico" type="image/x-icon">
<link rel="icon" href="myicon.ico" type="image/x-icon">
</head>
// image file format .ico or .png available. size 16x16 / 32x32 available.
@alirezas
alirezas / fade.js
Created February 13, 2017 10:54
fadeIn & fadeOut in vanilla js
function fadeOut(el){
el.style.opacity = 1;
(function fade() {
if ((el.style.opacity -= .1) < 0) {
el.style.display = "none";
} else {
requestAnimationFrame(fade);
}
})();
@andreasonny83
andreasonny83 / .gitignore
Last active December 15, 2025 18:31
Gitignore template for JavaScript projects
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# Runtime data
pids
*.pid