Skip to content

Instantly share code, notes, and snippets.

View therne's full-sized avatar
๐ŸŽฏ
Focusing

Jun Kim therne

๐ŸŽฏ
Focusing
View GitHub Profile
@therne
therne / word-sphere.js
Last active April 20, 2021 02:30
WordSphere - A rotating sphere of words. (NOTE: fuck IE support)
/**
* WordSphere
* Written by Hyojun Kim in 2017. Licensed in MIT.
*/
function wordSphere(canvas, texts, counts, options) {
const ฯ€ = Math.PI; // happy math!
const {
width = 500,
height = 500,
radius = 150,
@therne
therne / Airbloc Technical Whitepaper 2.md
Last active March 23, 2018 08:17
๊ธฐ์ˆ ๋ฐฑ์„œ ์ดˆ์•ˆ

Airbloc Technical Whitepaper

Candidate 1 First published on March 23, 2018.

์š”์•ฝ : ์—์–ด๋ธ”๋ก์€ ํƒˆ์ค‘์•™ํ™”๋œ ๊ด‘๊ณ  ๋ฐ์ดํ„ฐ ๊ฑฐ๋ž˜ ๋„คํŠธ์›Œํฌ์ž…๋‹ˆ๋‹ค. ์—์–ด๋ธ”๋ก์„ ํ†ตํ•ด ์ˆ˜์ง‘์ž๊ฐ€ ๊ฐœ์ธ ์‚ฌ์šฉ์ž์—๊ฒŒ์„œ DAuth๋ฅผ ํ†ตํ•ด ๋™์˜ํ•œ ๊ฐ„์ ‘ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํ•˜๊ฑฐ๋‚˜, ๋ฐ์ดํ„ฐ ์บ ํŽ˜์ธ์„ ํ†ตํ•ด ์‚ฌ์šฉ์ž์˜ ๊ด€์‹ฌ์‚ฌ๋ฅผ ์ง์ ‘ ์งˆ๋ฌธํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์ง์ ‘ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค. ์ด๋ ‡๊ฒŒ ์ˆ˜์ง‘๋œ ๋ฐ์ดํ„ฐ๋Š” ๊ฐ€๊ณต์ž๋ฅผ ํ†ตํ•ด ๊ด€์‹ฌ ๋ฐ์ดํ„ฐ์˜ ํ˜•ํƒœ๋กœ ๊ฐ€๊ณต๋˜์–ด ๊ด‘๊ณ ์ฃผ์—๊ฒŒ ํŒ๋งค๋˜๊ฒŒ ๋˜๋ฉฐ, ๊ฐœ์ธ ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด์ƒ์ด ์ง€๊ธ‰๋ฉ๋‹ˆ๋‹ค. ๊ฐœ์ธ ์‚ฌ์šฉ์ž๋Š” ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ์ •๋‹นํ•œ ๋ณด์ƒ ๋ฟ๋งŒ์ด ์•„๋‹ˆ๋ผ ํ†ต์ œ๊ถŒ๊นŒ์ง€ ์–ป๊ฒŒ ๋˜์–ด ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ์ฃผ๊ถŒ์„ ๊ฐ€์งˆ ์ˆ˜ ์žˆ๊ณ , ์•ฑ์‚ฌ๋Š” ์ •๋‹นํ•˜๊ฒŒ ์ˆ˜์ง‘ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ตํ™”ํ•ด ์‚ฌ์šฉ์ž์™€ ๋ณด์ƒ์„ ๋‚˜๋ˆ ๊ฐ€์งˆ ์ˆ˜ ์žˆ๊ณ , ๊ด‘๊ณ ์ฃผ๋Š” ๊ฐœ์ธ์— ๋Œ€ํ•œ ์ •ํ™•ํ•œ ๊ด€์‹ฌ ๋ฐ์ดํ„ฐ๋ฅผ ํ†ตํ•ด ๊ณ ํ’ˆ์งˆ์˜ ํƒ€๊ฒŸํŒ… ๊ด‘๊ณ ๋ฅผ ์ง‘ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Copyright ยฉ 2018 Airbloc Foundation. All rights are reserved.

Without permission, anyone may use, reproduce or distribute any material in this paper for non-commercial and educational use (i.e., other than for a fee or for commercial purposes) provided that the original source and the applicable copyright notice are cited.

@therne
therne / airbloc-token-economy.md
Created June 10, 2018 18:01
Airbloc์˜ ํ† ํฐ ์ด์ฝ”๋…ธ๋ฏธ์— ๋Œ€ํ•œ ์„ค๋ช…, ๊ทธ๋ฆฌ๊ณ  ํ•„์š”์„ฑ ์ •๋ฆฌ

Why Token Economy?

์™œ ์šฐ๋ฆฌ๊ฐ€ ํ† ํฐ ์ด์ฝ”๋…ธ๋ฏธ๋ฅผ ๊ณ ๋ฏผํ•ด์•ผ ํ• ๊นŒ์š”? ํ† ํฐ ์ด์ฝ”๋…ธ๋ฏธ๋Š” ์–ด๋–ค ๊ฒƒ์ด๊ณ , ์™œ ๊ณ ๋ คํ•ด์•ผ ํ•˜๋Š” ๊ฒƒ์ธ๊ฐ€์š”?

References

ํƒˆ์ค‘์•™ํ™”๋œ ์‹œ์Šคํ…œ์€ ์ค‘์•™ํ™”๋œ ์‹œ์Šคํ…œ์ฒ˜๋Ÿผ ์ค‘๊ฐ„์—์„œ ์ค‘์žฌํ•ด์ค„ ์ค‘์žฌ์ž๊ฐ€ ์—†๊ณ  ์—ด๋ฆฐ ํ™˜๊ฒฝ์„ ๊ฐ€์ง€๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, ๊ฒฝ์ œํ•™์ ์ธ ์ธ์„ผํ‹ฐ๋ธŒ / ํŒจ๋„ํ‹ฐ๋ฅผ ํ†ตํ•ด ์‹œ์Šคํ…œ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž‘๋™ํ•˜๋„๋ก ์ฐธ์—ฌ์ž๋“ค์˜ ํ–‰๋™์„ ์„ค๊ณ„ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ, ์ฐธ์—ฌ์ž๋“ค์ด ์ด์ต์„ ์–ป๊ธฐ ์œ„ํ•ด ํ† ํฐ ์ž์ฒด์˜ ์ˆ˜์š”์™€ ๊ณต๊ธ‰์„ ํ†ตํ•œ ๊ฐ€๊ฒฉ ์กฐ์ • ๋˜ํ•œ ๊ณ ๋ฏผํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

#!/bin/bash
aws ecr describe-repositories --repository-names $1 > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo Creating $1
aws ecr create-repository --repository-name $1
fi
@therne
therne / chainlink-vrf-experiment.md
Created March 15, 2022 02:56
Testing Chainlink VRF on Polygon Blockchain