Skip to content

Instantly share code, notes, and snippets.

View xoxwgys56's full-sized avatar
🚢
As it was

Yoooda xoxwgys56

🚢
As it was
View GitHub Profile
@nemorize
nemorize / korean-subway-station-list.json5
Last active March 28, 2025 04:53
λŒ€ν•œλ―Όκ΅­ ꡭ내에 μ‘΄μž¬ν•˜λŠ” μ§€ν•˜μ² μ—­ 정보(μ—­λͺ…, 지역ꡬ, λ…Έμ„ , μœ„/경도) λͺ©λ‘
[
// =======================================================
// λ³Έ μžλ£ŒλŠ” CC0-1.0 λΌμ΄μ„ μŠ€λ₯Ό λ”°λ¦…λ‹ˆλ‹€.
// https://creativecommons.org/publicdomain/zero/1.0/deed
// μ €μž‘κΆŒμžμ˜ ν—ˆλ½μ„ κ΅¬ν•˜μ§€ μ•Šμ•„λ„ 상업적인 λͺ©μ μ„ ν¬ν•¨ν•œ μ–΄λ– ν•œ λͺ©μ μœΌλ‘œλ“ 
// 자유둭게 볡사, μˆ˜μ •, 배포, μ‹€μ—°ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
// =======================================================
// λͺ¨λ“  μ •λ³΄λŠ” 직접 μˆ˜μ§‘ν•˜μ—¬ μ •λ¦¬ν•œ μ •λ³΄μž…λ‹ˆλ‹€.
// 일뢀 정보가 μ˜€κΈ°λ˜μ—ˆκ±°λ‚˜, μœ„/경도 μ’Œν‘œκ°€ λΆ€μ •ν™•ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
// Gist λŒ“κΈ€μ„ 톡해 였λ₯˜λ₯Ό μ œλ³΄ν•΄μ£Όμ„Έμš”.
@imankulov
imankulov / sqlalchemy_with_pydantic.py
Last active April 29, 2025 00:17
Using pydantic models as SQLAlchemy JSON fields (convert beween JSON and pydantic.BaseModel subclasses)
#!/usr/bin/env ipython -i
import datetime
import json
from typing import Optional
import sqlalchemy as sa
from sqlalchemy.orm import declarative_base, sessionmaker
from sqlalchemy.dialects.postgresql import JSONB
from pydantic import BaseModel, Field, parse_obj_as
@mjackson
mjackson / redirects-in-react-router-v6.md
Last active November 12, 2023 07:32
Notes on handling redirects in React Router v6, including a detailed explanation of how this improves on what we used to do in v4/5

Redirects in React Router v6

An important part of "routing" is handling redirects. Redirects usually happen when you want to preserve an old link and send all the traffic bound for that destination to some new URL so you don't end up with broken links.

The way we recommend handling redirects has changed in React Router v6. This document explains why.

Background

In React Router v4/5 (they have the same API, you can read about why we had to bump the major version here) we had a <Redirect> component that you could use to tell the router when to automatically redirect to another URL. You might have used it like this:

@trongnghia203
trongnghia203 / install_pyenv.md
Last active April 4, 2025 17:41
Install pyenv
@nhymxu
nhymxu / README-python-framework-benchmark.md
Last active April 3, 2025 09:58
Flask vs Falcon vs FastAPI benchmark
gunicorn run:app --workers=9
gunicorn run:app --workers=9 --worker-class=meinheld.gmeinheld.MeinheldWorker

Macbook Pro 2015 Python 3.7

Framework Server Req/s Max latency +/- Stdev
@npearce
npearce / install-docker.md
Last active April 26, 2025 04:27
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@jjangga0214
jjangga0214 / yarn.md
Last active March 3, 2025 12:13
[yarn] yarn 의 μ‚¬μš©λ°©λ²•μ— λŒ€ν•΄ μ„€λͺ…ν•œλ‹€. #yarn #npm

yarn

yarn 은 javascirpt 의 package manager 이닀. npm 의 drop-in substitute 둜 μ‚¬μš©ν•  수 μžˆλŠ” 점이 초기 λ„μž…μ—λ„ 큰 μž₯점이닀.
νŒ¨ν‚€μ§€ μ„€μΉ˜ 속도가 더 λΉ λ₯΄κ³ , νŒ¨ν‚€μ§€ μ„€μΉ˜κ³Όμ •μ—μ„œ νŒ¨ν‚€μ§€κ°€ codeλ₯Ό running ν•˜μ§€ μ•Šλ„λ‘ ν•˜μ—¬ 더 λ³΄μ•ˆμƒ μ•ˆμ „ν•˜λ‹€.
λ˜ν•œ, 같은 package.json 에 μ˜μ‘΄ν•˜λŠ” λ‘κ°œμ˜ μ„œλ‘œ λ‹€λ₯Έ ν™˜κ²½μ΄ μ„œλ‘œ λ‹€λ₯Έ λ²„μ „μ˜ νŒ¨ν‚€μ§€ μ˜μ‘΄μ„±μ„ κ°€μ§€λŠ” 것을 λ°©μ§€ν•˜κΈ° μœ„ν•΄, λ²„μ „μ˜ range κ°€ μ•„λ‹Œ, μ •ν™•ν•œ 버전을 λͺ…μ‹œν•œ yarn.lock νŒŒμΌμ„ μ‚¬μš©ν•œλ‹€.

μ£Όμš”

# npm install
yarn install λ˜λŠ” yarn
@justsml
justsml / fetch-api-examples.md
Last active April 22, 2025 13:44
JavaScript Fetch API Examples
@r00tdaemon
r00tdaemon / Install PyQt5 on Ubuntu with python3 .md
Last active March 3, 2025 02:10
Install PyQt5 on Ubuntu with python3. Steps to set up PyQt5 (ubuntu). With python code generation

Installation

pip3 install --user pyqt5  
sudo apt-get install python3-pyqt5  
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

Configuring to run from terminal

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 5, 2025 09:34
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example