Skip to content

Instantly share code, notes, and snippets.

View disjukr's full-sized avatar
🌇
I wanna something happen like a movie in my life

JongChan Choi (Rieul) disjukr

🌇
I wanna something happen like a movie in my life
View GitHub Profile
@disjukr
disjukr / .gitconfig
Last active November 15, 2021 08:24
my git global config
[user]
name = JongChan Choi
email = jong@chan.moe
[core]
precomposeunicode = true
[color]
ui = always
@disjukr
disjukr / settings.json
Last active July 18, 2020 18:59
windows-terminal settings
// https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{75def201-4efb-5e32-93a0-c5647120c025}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles": {
"defaults": {
"colorScheme": "Dark Plus"
},

Promise, async / await

안녕하세요, 이번 아는만큼 세미나에서는 블로킹과 논블로킹의 차이, 그리고 논블로킹의 콜백 지옥에 대해서 알아본 뒤, 콜백 지옥을 탈출할 수 있도록 돕는 Promise 객체와 async / await 문법을 살펴보겠습니다.

블로킹, 논블로킹

function blocking_wait(sec, callback) {
    var start_time = +new Date;
    while (+new Date < (start_time + sec * 1000));
    callback();
}
// ==UserScript==
// @name langdev irccloud
// @namespace http://0xABCDEF.com/userscript/irccloud/langdev
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.irccloud.com/*
// @grant none
// ==/UserScript==
(function () {
@disjukr
disjukr / favorites.jql
Last active March 29, 2019 04:50
지라 즐겨찾기 필터 모음
# 나에게 할당된 이슈
assignee = currentUser() AND statusCategory != Done
# 내 거지만 아직 진행중이진 않은 이슈
assignee = currentUser() AND statusCategory = "To Do"
# 내 이슈중 3개월 넘게 업데이트 안 된 이슈
assignee = currentUser() AND statusCategory != Done AND updatedDate < startOfMonth(-3m)
# 내가 진행중인 이슈
// ==UserScript==
// @name discord-mini
// @namespace http://0xabcdef.com/discord-mini
// @version 0.0.1
// @description 디스코드 방목록이랑 유저목록 가리고싶엉
// @author JongChan Choi <jong@chan.moe>
// @match https://discordapp.com/channels/*
// @grant none
// ==/UserScript==

문자열 인코딩에 대해서...

문자 코드는 우리가 표현하고자 하는 문자들의 집합을 코드화시킨 것이고, 문자열 인코딩은 그러한 문자 코드의 배열을 메모리상에 표현하는 방법입니다.

문자 코드 인코딩
아스키 코드 iso 8859
@disjukr
disjukr / SplattingTerrain.shader
Created April 1, 2013 16:37
unity3d shader for terrain
Shader "Custom/SplattingTerrain"
{
Properties
{
_R ("R channel Image", 2D) = "white" {}
_G ("G channel Image", 2D) = "white" {}
_B ("B channel Image", 2D) = "white" {}
_A ("A channel Image", 2D) = "white" {}
}
SubShader
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@disjukr
disjukr / Default (OSX).sublime-keymap
Last active July 27, 2016 05:53
My sublime text setting file
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } }
]