https://stackoverflow.com/questions/432842/how-do-you-get-the-logical-xor-of-two-variables-in-python How do you get the logical xor of two variables in Python? How do you get the logical xor of two variables in Python? For example, I have two variables that I expect to be strings. I want to test that only one of them contains a True value (is not None or an stackoverflow.com
# requirements.txt virtualenv black pre-commit # pyproject.toml [tool.black] line-length = 80 # .pre-commit-config.yaml repos: - repo: https://github.com/psf/black rev: 23.9.1 hooks: - id: black rm -rf .venv virtualenv .venv . .venv/bin/activate pip3 install -r requirements.txt pre-commit install https://velog.io/@samnaka/pycharm-vscode-black-%EC%A0%81%EC%9A%A9 pycharm vscode black 적용, pre-commi..
https://www.youtube.com/shorts/IdbXqgmTmSY
global: resolve_timeout: 1m slack_api_url: https://hooks.slack.com/services/... route: group_by: [alertname] group_wait: 30s group_interval: 5m repeat_interval: 1h receiver: prd routes: - receiver: dev matchers: - instance=~"0.0.0.0:1234" receivers: - name: prd slack_configs: - channel: error send_resolved: true - name: dev slack_configs: - channel: error-dev send_resolved: true inhibit_rules: -..
import static org.junit.jupiter.api.Assertions.assertThrows; @Test public void junit5에서_exception_테스트_1() { Assertions.assertThrows(RuntimeException.class, () -> { DoSomething.func(); }); } https://covenant.tistory.com/256 완벽정리! Junit5로 예외 테스트하는 방법 환경 구성 testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeClasspath - Runtime classpath of source set 'test'. +--- org...
https://lnsideout.tistory.com/entry/%EB%84%A4%EC%9D%B4%EB%B0%8D-%EC%B4%9D%EC%A0%95%EB%A6%ACcamel-case-kebab-case-pascal-case-snake-case 네이밍 규칙 총정리(camel case, kebab case, pascal case, snake case) 프로그래밍 개발을 할때 변수명이나 클래스명을 만들때 규칙을 정해서 만듭니다. 혼자서 스터디로 하는 프로젝트가 아니라(혼자하더라도 습관을 들이긴 해야합니다.) 다수의 사람들이 같이 일 lnsideout.tistory.com
@RequestMapping(value="/test/{firstNameIds}", method=RequestMethod.GET) @ResponseBody public String test(@PathVariable List firstNameIds) { //Example: pring your params for(Integer param : firstNameIds) { System.out.println("id: " + param); } return "Dummy"; } https://stackoverflow.com/questions/9623258/passing-an-array-or-list-to-pathvariable-spring-java Passing an Array or List to @Pathvariabl..
from typing import Annotated from fastapi import Depends from fastapi.security import HTTPBearer, HTTPBasicCredentials security = HTTPBearer() @app.get("/api/v1/test") def test( token: Annotated[HTTPBasicCredentials, Depends(security)], https://stackoverflow.com/questions/70926257/how-to-pass-authorization-header-from-swagger-doc-in-python-fast-api How to Pass Authorization Header from Swagger D..
Authorization: Authorization: Basic base64({USERNAME}:{PASSWORD}) Authorization: Bearer https://velog.io/@tosspayments/Basic-%EC%9D%B8%EC%A6%9D%EA%B3%BC-Bearer-%EC%9D%B8%EC%A6%9D%EC%9D%98-%EB%AA%A8%EB%93%A0-%EA%B2%83 Basic 인증과 Bearer 인증의 모든 것 토스페이먼츠-HTTP 인증 HTTP 인증(Authorization)은 웹 서버의 비밀번호 같은 역할을 해줘요. 비밀번호로 이메일 계정의 권한을 확인하는 것 처럼, HTTP 인증으로 서버에 접근하는 클라이언트의 권한을 velog.io
@app.get("/items/") async def read_items(): return [{"name": "Foo"}] @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc): """Your custom validation exception.""" message = return JSONResponse( status_code=400, content={"message": f"Validation error: {exc}"} ) def custom_openapi(): if app.openapi_schema: return app.openapi_schema openapi_schema = ge..
https://stackoverflow.com/questions/969285/how-do-i-translate-an-iso-8601-datetime-string-into-a-python-datetime-object How do I translate an ISO 8601 datetime string into a Python datetime object? I'm getting a datetime string in a format like "2009-05-28T16:15:00" (this is ISO 8601, I believe). One hackish option seems to be to parse the string using time.strptime and passing the first six sta..
https://github.com/tiangolo/fastapi/issues/518#issuecomment-576629657 Documenting multiple possible error models for a single response code · Issue #518 · tiangolo/fastapi Description How can I list multiple possible error responses so they're documented. I've tried supplying multiple error models in the model field of the responses dict with no success: authorize_pa... github.com
logging: level: org.springframework.security: DEBUG org.springframework.web: DEBUG org.springframework.transaction.interceptor: TRACE org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor: WARN pattern: level: "[userId=%X{userId}, reqId=%X{requestId}] %5p" file: path: logs logback: rollingpolicy: file-name-pattern: ${LOG_FILE}.%d{yyyy-MM-dd-HH}.%i.gz max-file-s..
- Total
- Today
- Yesterday
- COUNT
- 테슬라
- 테슬라 크레딧 사용
- 테슬라 레퍼럴 적용 확인
- 어떻게 능력을 보여줄 것인가?
- 모델 Y 레퍼럴
- 김달
- 개리마커스
- 클루지
- 유투브
- 테슬라 레퍼럴
- 테슬라 리퍼럴 코드 혜택
- 레퍼럴
- 테슬라 추천
- 팔로워 수 세기
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 레퍼럴 코드 확인
- 할인
- 모델y
- Kluge
- 인스타그램
- 테슬라 리퍼럴 코드 생성
- follower
- 책그림
- 테슬라 리퍼럴 코드
- wlw
- Bot
- 연애학개론
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |