๐ตโ๐ซ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| hackatime_timer.py โ Hackatime ์๋ ํ์ด๋จธ (manual timer) | |
| ์๋ํฐ ํ๋ฌ๊ทธ์ธ ์์ด, ์์ผ๋ก ์์/์ ์งํ๋ ํ์ด๋จธ๋ก Hackatime์ ์ฝ๋ฉ ์๊ฐ์ | |
| ๊ธฐ๋กํฉ๋๋ค. ํ์ด๋จธ๊ฐ ๋๋ ๋์ ์ผ์ ๊ฐ๊ฒฉ์ผ๋ก heartbeat๋ฅผ ๋ณด๋ด๋ฉฐ, ์ ์ง ์ | |
| ๋ง์ง๋ง heartbeat๋ฅผ ๋ณด๋ด "์์~์ ์ง"๊น์ง์ ์ค์ ๊ฒฝ๊ณผ ์๊ฐ์ด ๊ธฐ๋ก๋๋๋ก ํฉ๋๋ค. | |
| ์๋ฆฌ (hackclub/hackatime ์์ค ๊ธฐ์ค): | |
| - ์๋ฒ๋ heartbeat ์ฌ์ด ๊ฐ๊ฒฉ์ด 120์ด(2๋ถ) ์ด๋ด์ด๋ฉด ํ๋์ ์ฐ์ ๊ตฌ๊ฐ(span)์ผ๋ก |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ๋ถ์ค๋ฐฉ์ง ํ๊ทธ ์์คํ - ํ์ธ๋/ํด๋์ฉ | |
| # micro:bit์ ์ ๋ก๋ํ ์ฝ๋ | |
| from microbit import * | |
| import radio | |
| import music | |
| CHANNEL = 73 | |
| POWER = 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import glob | |
| import parmap | |
| import multiprocessing | |
| import subprocess as sp | |
| FFMPEG_BIN = "ffmpeg" | |
| def encode(input, output_path): |