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
# coding=utf-8 | |
""" | |
The outgoing calls information for the "Megafon" mobile operator | |
""" | |
import xml.etree.ElementTree as ElementTree | |
import re |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+shift+/"], "command": "toggle_setting", "args": {"setting": "word_wrap"} }, | |
{ "keys": ["ctrl+alt+left"], "command": "jump_back" }, | |
{ "keys": ["ctrl+alt+right"], "command": "jump_forward" } | |
] |
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
{ | |
"always_show_minimap_viewport": true, | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme", | |
"dictionary": "Packages/Language - Russian/ru_RU.dic", | |
"draw_minimap_border": true, | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": true, | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"font_face": "Consolas", |
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
""" | |
Rects overlapping | |
A rect representation: | |
rect = [x1, y1, x2, y2] | |
""" | |
def range_overlap(a_min, a_max, b_min, b_max): | |
return not ((a_min > b_max) or (a_max < b_min)) |
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 <cuda.h> | |
#include <stdio.h> | |
void cudasafe(int error, char* message, char* file, int line) { | |
if (error != cudaSuccess) { | |
fprintf(stderr, "CUDA Error: %s : %i. In %s line %d\n", message, error, file, line); | |
exit(-1); | |
} | |
} |
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
$ tar -zxvf cudnn-7.0-linux-x64-v4.0-prod.solitairetheme8 | |
$ cd cuda | |
$ sudo cp include/cudnn.h /usr/local/include | |
$ sudo cp lib64/libcudnn.* /usr/local/lib |
OlderNewer