Skip to content

Instantly share code, notes, and snippets.

View g405h3n's full-sized avatar
🍁
Wish for mental health.

g405h3n g405h3n

🍁
Wish for mental health.
View GitHub Profile
@emschwartz
emschwartz / README.md
Last active March 18, 2026 09:17
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@valsteen
valsteen / concurrency_limit.py
Last active August 30, 2025 07:44
How to limit concurrency with Python asyncio?
import asyncio
from typing import Awaitable, Callable, Coroutine, Iterator
from asyncio_pool import AioPool
import pytest as pytest
from more_itertools import peekable
"""
Different approaches to "How to limit concurrency with Python asyncio?"
https://stackoverflow.com/questions/48483348/how-to-limit-concurrency-with-python-asyncio/48484593#48484593
@darwing1210
darwing1210 / async_download_files.py
Last active August 30, 2025 07:33
Script to download files in a async way, using Python asyncio
import os
import asyncio
import aiohttp # pip install aiohttp
import aiofile # pip install aiofile
REPORTS_FOLDER = "reports"
FILES_PATH = os.path.join(REPORTS_FOLDER, "files")
def download_files_from_report(urls):
@rhoboro
rhoboro / async_sample.py
Last active August 30, 2025 04:15
asyncio, aiohttpを利用した並列処理のサンプルコード
import asyncio
import aiohttp
import async_timeout
from aiohttp import ClientError
async def _fetch(session, url, coro):
"""HTTPリソースからデータを取得しコルーチンを呼び出す