Skip to content

Instantly share code, notes, and snippets.

View cometkim's full-sized avatar

Hyeseong Kim cometkim

View GitHub Profile
@cometkim
cometkim / init.vim
Last active June 11, 2020 02:22
vimrc
set encoding=utf-8
set fileencoding=utf-8
set nocompatible " be iMproved, required
" Numbers
set number relativenumber
set numberwidth=4
augroup numbertoggle
autocmd!
@cometkim
cometkim / init.zsh
Last active May 24, 2018 02:18
zshrc
# User configuration
export LANG="ko_KR.UTF-8"
export LC_ALL="$LANG"
export EDITOR="nvim"
export VISUAL="$EDITOR"
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
@cometkim
cometkim / header.tsx
Last active February 23, 2018 01:47
React 스크롤에 반응하는 헤더 컴포넌트
import * as React from 'react'
import styled from 'styled-components'
import Link from 'gatsby-link'
import theme from 'utils/theme'
interface HeaderProps {
title: string
fixed?: boolean
}
@cometkim
cometkim / utteranc.tsx
Created March 2, 2018 09:51
React Utteranc 댓글 컴포넌트
import * as React from 'react'
interface UtterancProps {
repo: string
branch: string
issueTerm: string
}
export default class Utteranc extends React.PureComponent<UtterancProps> {
instance: HTMLDivElement = null;
@cometkim
cometkim / .babelrc.js
Created April 2, 2018 14:20
노드 프로젝트 바벨7 설정
module.exports = {
presets: [
["@babel/env", {
targets: {
node: "current"
},
useBuiltIns: "usage",
}],
],
plugins: [
{
"scripts": {
"postinstall": "node patch-flatmap-stream.js"
}
}

Keybase proof

I hereby claim:

  • I am cometkim on github.
  • I am cometkim (https://keybase.io/cometkim) on keybase.
  • I have a public key whose fingerprint is 2B85 48C5 818C B14B 2F77 A69A 3EE3 B2AA 5C23 ABBF

To claim this, I am signing this object:

@cometkim
cometkim / main.go
Created January 13, 2019 19:26
qor admin with echo
package main
import (
"fmt"
"github.com/jinzhu/gorm"
"github.com/labstack/echo"
_ "github.com/mattn/go-sqlite3"
"github.com/qor/admin"
"github.com/qor/auth"
@cometkim
cometkim / weekOfMonth.js
Created February 6, 2019 17:26
특정 날짜가 그 달의 몇 번 째 주차인지 계산하기
const format = require('date-fns/format')
const startOfWeek = require('date-fns/start_of_week')
const today = new Date()
// 시작일이 포함되는 주의 수요일(3)의 포함 달을 기준으로 주차를 계산
const baseDate = startOfWeek(today, { weekStartsOn: 3 })
const baseMonth = baseDate.getMonth() + 1
const baseDays = baseDate.getDate() + 1
@cometkim
cometkim / Brewfile
Last active April 18, 2019 09:27
Homebrew bundle
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "instantclienttap/instantclient"
tap "jesseduffield/lazygit"
tap "lqez/npk"
cask "java"
cask "java8"
brew "ansible"