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
QTabWidget::pane { | |
border: 1px solid black; | |
background: white; | |
} | |
QTabWidget::tab-bar:top { | |
top: 1px; | |
} | |
QTabWidget::tab-bar:bottom { |
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
from typing import Union | |
import pandas as pd | |
from trading_calendars import TradingCalendar, get_calendar | |
class TradingDay: | |
"""Offset for trading days | |
The class is useful to find previous and next trading days from given date. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 multiprocessing as mp | |
import matlab.engine as me | |
def start_matlab(ready_event, close_event): | |
print('Starting matlab...') | |
eng = me.start_matlab(option='-nodesktop') |
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
function varargout = crspline_curve(varargin) | |
%CRSPLINE_CURVE Конструирует двумерную кривую кубическим Catmull-Rom интерполяционным сплайном | |
% | |
% Описание: | |
% Функция конструирует двумерную кривую по узловым точкам, используя | |
% Catmull-Rom интерполяционные кубические сплайны. | |
% Данные сплайны могут локально контролироваться и проходят по | |
% узловым точкам, а не в выпуклой их оболочке. | |
% | |
% Литература: |
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
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
"\e\e": kill-whole-line | |
set colored-stats On | |
set completion-ignore-case On | |
set completion-prefix-display-length 3 | |
set mark-symlinked-directories On | |
set show-all-if-ambiguous On | |
set show-all-if-unmodified On |
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 time | |
import numpy as np | |
from scipy.sparse import csr_matrix | |
def make_matrix(shape, nnz): | |
i = np.random.randint(0, shape[0] - 1, nnz) | |
j = np.random.randint(0, shape[1] - 1, nnz) | |
data = np.random.randn(nnz) |
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 time | |
import numpy as np | |
from scipy.sparse import diags | |
def make_matrix(pcount): | |
x = np.linspace(0., 10., pcount) | |
dx = np.diff(x) | |
odx = 1. / dx |
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
from typing import Optional | |
from pydantic import BaseModel, validator | |
class MyModel(BaseModel): | |
name: Optional[str] | |
class Config: | |
validate_assignment = True |
NewerOlder