Skip to content

Instantly share code, notes, and snippets.

{
"title": "test",
"maintainers": [
"kang hyojun"
],
"rules": [
{
"type": "basic",
"from": {
"modifiers": {

Keybase proof

I hereby claim:

  • I am kanghyojun on github.
  • I am kanghyojun (https://keybase.io/kanghyojun) on keybase.
  • I have a public key ASAZMb3_K219uDCyaNwWI3gTfDZxGMmK1VhjBGpcXGHpvQo

To claim this, I am signing this object:

@kanghyojun
kanghyojun / nirum_internal_doc.md
Last active August 14, 2018 09:05
니름 인터널 문서

니름 인터널 문서

니름 컴파일러 내부에 정의된 각 모듈과 자료형에 대한 설명을 문서화합니다. 가장 바깥쪽인 니름 컴파일러 실행 명령어부터 입력받은 파일을 특정 타겟으로 컴파일하는 내부 구조까지 개략적으로 소개합니다.

(이 문서는 아직 작성중입니다. 다른 분들의 기여나 제안도 환영합니다.)

CLI

@kanghyojun
kanghyojun / README.md
Created July 30, 2018 14:02 — forked from dahlia/README.md
니름 스프린트 사전 준비
const wrongCond = 1 in [0, 2, 3]; // true
const rightCond = [0, 2, 3].indexOf(1) !== -1; // false
@kanghyojun
kanghyojun / query_debug.py
Created November 24, 2017 11:38 — forked from dahlia/query_debug.py
Print SQLAlchemy queries (including bind params).
"""Print SQLAlchemy queries (including bind params)."""
def show_query(query):
from sqlalchemy.dialects.postgresql import dialect
qc = query.statement.compile(dialect=dialect())
return str(query) % {n: repr(b.value) for n, b in qc.binds.items()}
def print_query(query):
import requests
from bs4 import BeautifulSoup
r = requests.get('http://www.python.org')
page = r.text
soup = BeautifulSoup(page,"html.parser")
use = soup.find("div", class_ = "applications-widget")
n = int(input())
a = [
int(x)
for x in input().split(" ")
]
b = [
int(x)
for x in input().split(" ")
]
#a = [1, 1, 1, 6, 0]

Keybase proof

I hereby claim:

  • I am admire93 on github.
  • I am kanghyojun (https://keybase.io/kanghyojun) on keybase.
  • I have a public key whose fingerprint is CB5E F003 1C3A 563A 06E3 6C61 C652 AD17 98A1 9EF1

To claim this, I am signing this object:

@kanghyojun
kanghyojun / postgres-cheatsheet.md
Created November 17, 2016 01:24 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*