Skip to content

Instantly share code, notes, and snippets.

View SeonHyungJo's full-sized avatar
🎯
Focusing

snyung SeonHyungJo

🎯
Focusing
View GitHub Profile
@SeonHyungJo
SeonHyungJo / sublime-mac.textile
Created April 24, 2018 09:06 — forked from paulovera/sublime-mac.textile
SUBLIME TEXT MAC- Keyboard's Shortcuts Cheat Sheet

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@SeonHyungJo
SeonHyungJo / selenium-grid-howto.txt
Created February 8, 2019 02:20 — forked from hannic/selenium-grid-howto.txt
selenium grid setup (mac os - ubuntu - windows)
Supports up to 5 concurrent tests from:
1. On hub machine (Mac OS)
java -jar selenium-server-standalone-2.21.0.jar -role hub
2. On node machine (Ubuntu)
java -jar selenium-server-standalone-2.21.0.jar
-role webdriver
@SeonHyungJo
SeonHyungJo / ID.js
Created May 17, 2019 15:03
ID - a unique ID/name generator for JavaScript
// Generate unique IDs for use as pseudo-private/protected names.
// Similar in concept to
// <http://wiki.ecmascript.org/doku.php?id=strawman:names>.
//
// The goals of this function are twofold:
//
// * Provide a way to generate a string guaranteed to be unique when compared
// to other strings generated by this function.
// * Make the string complex enough that it is highly unlikely to be
// accidentally duplicated by hand (this is key if you're using `ID`
@SeonHyungJo
SeonHyungJo / hyper.js
Created May 19, 2019 13:43
My HyperJS Setting
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
// default font size in pixels for all tabs
fontSize: 18,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
console.log(performance.now())
window.setTimeout(() => {console.log(performance.now()); console.log('settimeout')}, 0)
var animationCallback = () => {
console.log('AnimationFrame')
window.requestAnimationFrame(animationCallback)
}
animationCallback()
Promise.resolve().then(() => console.log('promise!!!'))
@SeonHyungJo
SeonHyungJo / notion2blog.js
Last active February 22, 2021 15:22 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
@SeonHyungJo
SeonHyungJo / CJK.html
Last active August 20, 2021 16:04
CJK Test html file
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
div {
@SeonHyungJo
SeonHyungJo / _notepad.nsi
Created January 15, 2019 05:06
NSIS 예제 파일
#############################################################################################################
##
## 2004-01-09 새로운 구조로 최초 작성
## 01-29 템플릿 구성 시작
## 10-05 NOTEPAD 샘플 작성
##
## NSIS 예제 파일 작성 : hardkoder@gmail.com ( www.kipple.pe.kr )
##
#############################################################################################################
{
// https://github.com/Microsoft/TypeScript/tree/master/tests/cases/compiler
// https://github.com/Microsoft/TypeScript/tree/master/tests/baselines/reference
// 공식문서 외에도 위 테스트 코드를 참고시 도움이 됩니다.
"compilerOptions": {
"allowJs": false, // 자바스크립트 파일 컴파일 허용 여부.
// import add from './add.js' 와 같이 js파일 import 허용
"allowSyntheticDefaultImports": false, // export default 를 export 한 값들을 가지는 객체로 설정