Skip to content

Instantly share code, notes, and snippets.

View yhk1038's full-sized avatar

Y. Fred Kim yhk1038

  • @gomicorporation
  • Seoul, Republic of Korea
View GitHub Profile
@yhk1038
yhk1038 / cra-rails-template.rb
Created May 9, 2021 17:50
My own cra-rails template. (It requires permission for a private repository)
require 'json'
def run!
source_dirname = 'create-react-app-with-rails-boilerplate'
client_app_dir = 'client'
git clone: 'https://github.com/yhk1038/create-react-app-with-rails-boilerplate.git'
add_gems
add_gitignore
@yhk1038
yhk1038 / scrollTopArrivedAt.js
Created November 24, 2018 22:03
Execute When the scroll arrived specific offset position from the window's bottom.
/*
* scrollTopArrivedAt.js
* @description
* It's a *boilerplate function* that enable to execute your function when
* the scroll position arrived specific offset from the window's bottom.
* Also, It supports lockable options to avoid duplicate calls due to
* unnecessary scrolling changes.
*
* - bottomOffset: number | optional | (px) default: 0
* - func: function | required | (Your Awesome Function) default: <If it doesn't exist, return false>
@yhk1038
yhk1038 / patching.js
Created April 12, 2018 11:43
Patching: replace only changed part in Object structure. (Ex. Can be used to override user options in default options in library whatever you want to make.)
function patching(original, cover) {
Object.keys(cover).forEach(function (key, i) {
if (original.hasOwnProperty(key)) {
if (typeof original[key] === 'object'){
original[key] = patching(original[key], cover[key])
} else {
original[key] = cover[key]
}
}
});
@yhk1038
yhk1038 / tls_store.csv
Last active December 8, 2017 05:29
'Tous les Jours' whole store data frame after necessary processed (1358 obs. 6 variables)
name addr_new addr_old lat lon tel
진주금산 경상남도 진주시 금산면 금산순환로 24 경상남도 진주시 금산면 장사리 979-1 35.2163205 128.1473798 055-762-5288
창원무동 경상남도 창원시 무동로 226번길 8 경남 창원시 의창구 북면 무동리 145-5 35.3169718 128.5845425 055-605-9230
문래하이테크 서울특별시 영등포구 경인로 775 서울시 영등포구 문래동3가 55-20, 에이스하이테크시티 1-106 37.5147059 126.8986615 02-6309-5088
관악농협하나로 서울특별시 관악구 남부순환로 1369 관악농협하나로마트 서울 관악구 신림동 1668 관악농협하나로마트 37.480091 126.9028016 02-868-6486
부산용당 부산광역시 남구 유엔평화로 143 부산 남구 용당동 565-9 35.123574 129.0972842 051-624-0032
전남진도 전라남도 진도군 동외1길 6-4 전남 진도군 진도읍 동외리 1185-1 34.4808512 126.2686831 061-544-2211
오산시티자이 경기도 오산시 부산중앙로 12 2단지 105-106호 경기도 오산시 부산동 661번지 2단지 105-106호 37.1492824 127.0904251 031-000-0000
국회 서울특별시 영등포구 의사당대로 1, 국회의원회관 서울시 영등포구 여의도동 1번지, 국회의원회관 37.5310408 126.9164124 02-1234-1234
연수무지개 인천광역시 연수구 원인재로 14 인천광역시 연수구 동춘동 931번지 37.4013008 126.6713924 032-813-0661