This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
typedef unsigned char byte_t; | |
static const byte_t offset = 1; | |
static const byte_t limit = 4; |
This file contains 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
# coding: utf-8 | |
import logging | |
__logger = logging.getLogger(__name__) | |
def global_function(): | |
__logger.error('global_function') |
This file contains 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
# coding: utf-8 | |
import logging | |
class AddLoggerMeta(type): | |
def __new__(mcs, class_name, bases, attr_dict): | |
attr_dict[f'_{class_name}__logger'] = logging.getLogger(class_name) | |
return super().__new__(mcs, class_name, bases, attr_dict) |
This file contains 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
[Shortcuts] | |
activate_last_tab=Alt+0 | |
activate_next_tab=Ctrl+PgDown; Ctrl+]; Ctrl+Tab | |
activate_prev_tab=Ctrl+PgUp; Ctrl+[; Ctrl+Shift+Tab | |
activate_tab_0=Alt+1 | |
activate_tab_1=Alt+2 | |
activate_tab_2=Alt+3 | |
activate_tab_3=Alt+4 | |
activate_tab_4=Alt+5 | |
activate_tab_5=Alt+6 |
This file contains 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 logging | |
from typing import TypeVar, Literal | |
from pydantic import BaseModel, root_validator | |
logger = logging.getLogger(__name__) | |
logging.basicConfig(level=logging.DEBUG) | |
class TestMarkup(BaseModel): |
OlderNewer