This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget -O - https://s3.ap-northeast-2.amazonaws.com/cdn.fedev.kr/script/vundle.sh | bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // version 1 원본 훼손 | |
| const chunk = (list, size) => | |
| new Array(parseInt(list.length / size)) | |
| .fill() | |
| .map(() => list.splice(0, size)); | |
| // version 2 원본 유지 | |
| const chunk = (list, size) => | |
| new Array(parseInt(list.length / size)) | |
| .fill() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ls | xargs du -sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hasSafeArea() { | |
| const div = document.createElement('div'); | |
| const computed = getComputedStyle(div); | |
| div.style.paddingBottom = 'env(safe-area-inset-bottom)'; | |
| document.body.appendChild(div); | |
| const bottom = parseInt(computed.paddingBottom) || 0; | |
| document.body.removeChild(div); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div id="app"> | |
| <div> | |
| <input type="file" @change="previewFile" /> | |
| <br /> | |
| <img src height="200" alt="이미지 미리보기..." /> | |
| <button @click="doConvert">다운로드</button> | |
| </div> | |
| </div> | |
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| await (() => new Promise((resolve) => setTimeout(() => resolve(true), 100)))(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { https } from "firebase-functions"; | |
| import * as express from "express"; | |
| import { ApolloServer, gql } from "apollo-server-express"; | |
| const typeDefs = gql` | |
| # Comments in GraphQL strings (such as this one) start with the hash (#) symbol. | |
| # This "Book" type defines the queryable fields for every book in our data source. | |
| type Book { | |
| title: String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| uname_out="$(uname -s)" | |
| case "${uname_out}" in | |
| Linux*) machine=Linux;; | |
| Darwin*) machine=Mac;; | |
| CYGWIN*) machine=Cygwin;; | |
| MINGW*) machine=MinGw;; | |
| *) machine="UNKNOWN:${uname_out}" | |
| esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dayjs(new Date().toLocaleString("en-US", {timeZone: "Asia/Seoul"})).format('YYYY-MM-DD HH:mm:ss') |