Skip to content

Instantly share code, notes, and snippets.

View SooJungChae's full-sized avatar

Soojung Chae SooJungChae

  • South Korea
View GitHub Profile
@CSTDev
CSTDev / auto-increment-version.sh
Last active July 4, 2024 12:16
Script that will find the last Git Tag and increment it. It will only increment when the latest commit does not already have a tag. By default it increments the patch number, you can tell it to change the major or minor versions by adding #major or #minor to the commit message.
#!/bin/bash
#get highest tag number
VERSION=`git describe --abbrev=0 --tags`
#replace . with space so can split into an array
VERSION_BITS=(${VERSION//./ })
#get number parts and increase last one by 1
VNUM1=${VERSION_BITS[0]}
@bradtraversy
bradtraversy / eslint_prettier_airbnb.md
Created July 19, 2019 17:54
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node

[record] 봄날의 구직활동

Warning

각 회사의 면접 중에 받은 문제나 질문에 대해서는 상세히 기술하지 않는다. 각 사내 (보안) 규정을 위반할 가능성이 있다…​. 자세히 알려주지 못해서 미안하다.

시작

@faressoft
faressoft / dom_performance_reflow_repaint.md
Last active July 23, 2024 08:38
DOM Performance (Reflow & Repaint) (Summary)

DOM Performance

Rendering

  • How the browser renders the document
    • Receives the data (bytes) from the server.
    • Parses and converts into tokens (<, TagName, Attribute, AttributeValue, >).
    • Turns tokens into nodes.
    • Turns nodes into the DOM tree.
  • Builds CSSOM tree from the css rules.
@avinmathew
avinmathew / index.jsx
Created August 8, 2017 11:54
Multiple layouts with React Router v4
import React from "react"
import { Route, Switch } from "react-router-dom"
const AppRoute = ({ component: Component, layout: Layout, ...rest }) => (
<Route {...rest} render={props => (
<Layout>
<Component {...props} />
</Layout>
)} />
)
@moimikey
moimikey / after.js
Last active June 5, 2023 04:50
object literals for redux reducers
// O(1)
const todo = (state, action) => {
const actions = {
ADD_TODO: () => {
return {
id: action.id,
text: action.text,
completed: false
}
},
@goesang
goesang / quickSort.js
Created June 23, 2015 14:16
퀵 정렬 자바스크립트 간단 버젼
function quickSort(arr){
if(arr.length < 2)
return arr;
var pivot = arr[Math.floor(arr.length/2)];
var middle = arr.filter(function (data) {return data == pivot;});
var lows = quickSort(arr.filter(function (data) {return data < pivot;}));
var highs = quickSort(arr.filter(function (data) {return data > pivot;}));
@sooop
sooop / hangulSound.js
Created February 15, 2013 06:48
한글 초/중/종성을 구하는 자바스크립트 함수
/**
초성 중성 종성 분리 하기
유니코드 한글은 0xAC00 으로부터
초성 19개, 중상21개, 종성28개로 이루어지고
이들을 조합한 11,172개의 문자를 갖는다.
한글코드의 값 = ((초성 * 21) + 중성) * 28 + 종성 + 0xAC00
(0xAC00은 'ㄱ'의 코드값)
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 23, 2024 05:34
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname