Skip to content

Instantly share code, notes, and snippets.

View chongkong's full-sized avatar
🎯
Focusing

Jongbin Park chongkong

🎯
Focusing
View GitHub Profile
@chongkong
chongkong / days_are_long_but_decades_are_short.md
Last active December 2, 2023 13:58
Sam Altman - The days are long but the decades are short

이 글은 샘 알트만이 2015년 4월 29일 Y-Combinator의 president으로 일하던 시절 서른살이 되면서 쓴 The days are long but the decades are short를 한글로 번역한 글입니다. 다른 번역 글도 있었으나 오역이 많아 원문에서 재차 의역했습니다.

하루는 길지만 10년은 짧다.

나는 지난주에 30살이 되었는데, 친구들이 내가 20대에 배운것들 중 곰씹을만한 삶의 조언들이 없을지 물어보았다. 이러한 목록들이 대게 깊이가 없으므로 글을 쓸지 다소 고민했는데, 아무튼 내 답은 다음과 같다.

  1. 가족들, 친구들, 또는 다른 소중한 사람들에 대한 우선순위를 절대 낮추지 말 것. 수백 명의 지인들보다는 정말 가까운 한줌의 친구들을 소중히 여길 것. 오랜 친구들과 연락이 끊기지 않도록 노력할 것. 가끔은 밤새 해가 뜰 때까지 사람들과 얘기하느라 시간을 보낼 것. 파티를 열 것.

  2. 인생은 리허설이 아님. 이게 전부지만 정말 잘 새겨넣기. 시간은 아주 제한적인 자원이고, 엄청 빨리 간다. 나를 행복하게 만들거나 만족스러운 일을 할 것 - 어차피 수백 년 후에 기억되는 사람은 아주 소수에 불과하다. 나를 행복하게 만들지 못하는 일(대게 다른 사람이 나에게 시키는 일)은 하지 말기. 내가 좋아하지 않는 사람과 관계를 유지하기 위해 많은 시간을 쓰지 말기, 나에게 해를 끼치는 사람들은 내 인생에서 없애기. 내 인생을 좀먹는 것들을 용납하지 말 것. 내가 하고 싶어 하는 일을 하지 않는 데에 변명하지 말기.

@chongkong
chongkong / hello.c
Last active September 26, 2020 09:32
Code feedback for ibaesuyeon
#include <stdio.h>
#include <math.h>
// Consistent code styling is important.
// This is my preference, but I uses "2 spaces" for indentation
// (as opposed to using "tab") because github renders tab with 8 spaces.
// You can configure your code editor to use spaces instead of tab,
// even when you're pressing a tab.
// Recursive style factorial function. Returns x!.
@chongkong
chongkong / thorq.py
Last active December 16, 2017 13:53
ThorQ utility
""" MIT License
Copyright (c) 2017 chongkong
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@chongkong
chongkong / number_baseball.py
Created October 28, 2017 09:02
간단한 숫자야구 구현
import itertools
import random
class NumberBaseball(object):
RANGE = range(10)
PITCHES = 4
def __init__(self, ans):
assert len(ans) == len(set(ans))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chongkong
chongkong / 1.md
Last active February 16, 2017 09:55
TimeAndDate Feedback

South Korean Holidays Feedback

Hello timeanddate. I've recently looked through the holidays of South Korea in timeanddate and found out some of them are wrong, have weird translation, or some holidays are missing. (link) As a native Korean, I'd like to give you some thorough feedback on it.

1. Typo in New Year's Day.

There's no closing parenthesis in new-year-day's Korean Translation.

@chongkong
chongkong / animation.html
Last active January 29, 2017 19:24
Efficient data structure for storing quad-partial data
<!doctype html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.4.1/snap.svg-min.js"></script>
</head>
<body>
<script>
const GREEN = "#77cc22";
const BLUE = "#2277ee";
const LIGHTGRAY = "#dddddd";
const DARKGRAY = "#cccccc";
@chongkong
chongkong / keybase.md
Created January 24, 2017 02:36
Keybase

Keybase proof

I hereby claim:

  • I am chongkong on github.
  • I am chongkong (https://keybase.io/chongkong) on keybase.
  • I have a public key whose fingerprint is 6535 990E EC0B 18B5 BEF0 8CE8 E74E 2834 0EE3 75BB

To claim this, I am signing this object:

@chongkong
chongkong / sample.py
Last active August 29, 2016 04:53
get() query does not load joinedloaded relationship when reloading expired object
from sqlalchemy import Column, BigInteger, ForeignKey, create_engine
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
Session = sessionmaker()
class Foo(Base):
__tablename__ = 'foo'
<!doctype html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<section>
<div class="container">
<h1>CSV Table Example</h1>
<label>CSV File</label>
<input id="file-input" type="file" onchange="">