Skip to content

Instantly share code, notes, and snippets.

View junhoyeo's full-sized avatar
๐Ÿดโ€โ˜ ๏ธ

Junho Yeo junhoyeo

๐Ÿดโ€โ˜ ๏ธ
View GitHub Profile
https://apple.stackexchange.com/questions/265445/terminal-safari-cannot-resolve-host-but-chrome-can-connect
// Decompiled by library.dedaub.com
// 2024.03.03 03:26 UTC
// Compiled using the solidity compiler version 0.8.23
// Data structures and variables inferred from the use of storage instructions
uint256 _getCirculatingSupply; // STORAGE[0x1]
uint256 stor_2; // STORAGE[0x2]
uint256 stor_0_0_2; // STORAGE[0x0] bytes 0 to 2
mapping (uint256 => struct_1412) map_3; // STORAGE[0x3]
const asyncFlatMap = async <T extends any, U extends any>(
array: T[],
callback: (value: T, index: number, array: T[]) => Promise<[] | U | U[]>,
): Promise<U[]> => {
const result = await Promise.all(array.map(callback));
return result.flat() as U[];
};
const handler = () => {}
// params should be serialized key?
const [pages, setPages] = useState()
useEffect(() => {
while (cursor) {
const { data, cursor } = requester(params)
setPages(prev => [...prev, data])
}
}, [params])

Q. ์™œ OHM(์ž์ฒด ํ† ํฐ)์„ ๋ฐ”๋กœ ์Šคํ…Œ์ดํ‚นํ•˜์ง€ ์•Š๊ณ  sOHM์œผ๋กœ ๋ฐ”๊ฟ” ์Šคํ…Œ์ดํ‚นํ•˜๋‚˜์š”?

OHM ์„ ์Šคํ…Œ์ดํ‚นํ•˜๋ฉด, sOHM ์„ ์ฃผ๋Š” ๊ฒŒ ๋งž์„๊ฑธ์š”! ๋ณดํ†ต ์šฐ๋ฆฌ๊ฐ€ ์Šคํ…Œ์ดํ‚น์„ ํ•˜๋ฉด, ์Šค๋งˆํŠธ ์ปจํŠธ๋ž™ํŠธ ์•ˆ์˜ ์ƒํƒœ๋กœ โ€œ์Šคํ…Œ์ดํ‚น ํ–ˆ๋‹ค๋Š” ์‚ฌ์‹คโ€์ด ๊ธฐ๋ก๋˜๋Š”๋ฐ์š”(ex> { โ€œ์ฃผ๋…ธโ€: 50 OHM, โ€œ์ด๋“ โ€: 100 OHM } ๋Œ€์ถฉ ๋ญ ์ด๋Ÿฐ์‹). ๊ทธ๋Ÿฐ๋ฐ ์ด ๊ตฌํ˜„์˜ ๋ฌธ์ œ๋Š”, ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ์ฃผ๋…ธ๊ฐ€ ์Šคํ…Œ์ดํ‚น๋œ 50์˜ด์„ ๊ทธ๋Œ€๋กœ ์–‘๋„ํ•  ์ˆ˜ ์—†์–ด์š”(=์œ ๋™ํ™”๋ฅผ ๋ชปํ•ด์š”, ์—ฌ๊ธฐ์—๋„ unstaking period ๊ฐ€ ์žˆ๋Š”์ง€๋Š” ๋ชจ๋ฅด๊ฒ ๋Š”๋ฐ, ์˜ค์Šค๋ชจ๋ฅผ ์Šคํ…Œ์ดํ‚น ํ•œ ๊ธฐ๊ฐ„ ๋™์•ˆ์€ ๊ทธ๊ฑธ ํŒ”๊ฑฐ๋‚˜ ์ด๊ด€ํ•˜์ง€ ๋ชปํ•˜์ž–์•„์š”?). ๊ทธ๋ž˜์„œ OlympusDAO ์—์„œ๋Š” ์Šคํ…Œ์ดํ‚นํ•œ ์‚ฌ๋žŒ๋“ค์—๊ฒŒ sOHM ์ด๋ผ๋Š” ํ† ํฐ์„ ๋ฐœํ–‰ํ•ด์ฃผ๊ณ , โ€œ๋‚˜์ค‘์— ๋‹ค์‹œ ๊ฐ€์ ธ์˜ค๋ฉด OHM์œผ๋กœ ๋ฐ”๊ฟ”์ค„๊ฒŒ!โ€ ํ•˜๋Š” ๊ฑฐ์˜ˆ์š”. ์•ฝ๊ฐ„ ์ฑ„๊ถŒ๊ฐ™์€๊ฑฐ์ฃ !!

๊ฐ„๋‹จํ•œ ์˜ˆ์‹œ: ์•ต์ปค (์•ต์ปค์— UST๋ฅผ Deposit(์‚ฌ์‹ค์ƒ Staking) ํ•˜๋ฉด, ๊ทธ ์ฆํ‘œ๋กœ aUST๋ฅผ ์ฃผ์ž–์•„์š”!)

var param = "chapterNo=0101&current_frame_count=1&currentPosition="+ 13245+'&courseCd=HLSC60332&takeCourseSeq=40116154&_'+$.now();
$.get('ProgressSave.aspx',param,function(data){
if(data=="N"){
alert('๋‹ค๋ฅธ ์œ„์น˜์—์„œ ๋กœ๊ทธ์ธ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ•™์Šต์ด ์ข…๋ฃŒ๋˜๋ฉฐ ๋กœ๊ทธ์•„์›ƒ๋ฉ๋‹ˆ๋‹ค.');
top.close();
}
});
if target.respond_to?(:source_build_phase) == true
source_files = target.source_build_phase.files
dummy = source_files.find do |file|
file.file_ref.name == 'GCDAsyncSocket.m'
end
if dummy != nil
puts target.name
end
@junhoyeo
junhoyeo / git-branch-deleteall
Last active January 18, 2022 18:37
Remove all branches
git branch | grep -v "main" | xargs git branch -D
@junhoyeo
junhoyeo / router.ts
Created December 7, 2021 10:41
Remove query parameter from current route
export const removeQueryParameter = (name: string) => {
const params = new URLSearchParams(location.search)
params.delete(name)
history.replaceState(null, '', '?' + params + location.hash)
}
const Terminal = () => {
return (
<TerminalContainer>
<TerminalControls>
<Control style={{ backgroundColor: '#FF5F56' }} />
<Control style={{ backgroundColor: '#FFBD2E' }} />
<Control style={{ backgroundColor: '#27C93F' }} />
</TerminalControls>
<TerminalCommand>yarn add @frogress/line</TerminalCommand>