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
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Default Page Title</title> | |
<link rel="shortcut icon" href="favicon.ico"> | |
<link rel="icon" href="favicon.ico"> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script> |
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
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; | |
font: inherit; | |
vertical-align: baseline; | |
outline: none; | |
} | |
html { height: 101%; } /* always display scrollbars */ |
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
@media print { | |
* { | |
background: none !important; | |
color: black !important; | |
box-shadow: none !important; | |
text-shadow: none !important; | |
/* Images, vectors and such */ | |
filter: Gray(); /* IE4-8: depreciated */ | |
filter: url('desaturate.svg#grayscale'); /* SVG version for IE10, Firefox, Safari 5 and Opera */ |
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
/// <summary> | |
/// Помошник по ведению логов | |
/// Статический интерфейс над библиотекой для логирования (в данном случае - NLog2) | |
/// </summary> | |
public static class LogHelper | |
{ | |
/// <summary> | |
/// Инициализация логгера. | |
/// </summary> | |
private static Logger _logger = LogManager.GetCurrentClassLogger(); |
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
/// <summary> | |
/// Вспомогательный класс для работы с файлами. | |
/// </summary> | |
public static class FilesHelper | |
{ | |
/// <summary> | |
/// Получение расширения файла. | |
/// </summary> | |
/// <param name="filename">Файл для разбора (полный путь к нему).</param> | |
/// <returns>Возвращает расширение файла.</returns> |
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 VizualizeAnimation(xfile, yfile, lenght, aniFile) | |
% чтение квадратной матрицы из файла текстового | |
function [matrix] = ImportMatrix(filename, size) | |
matrix = zeros(size, size); | |
file = fopen(filename,'r'); | |
[matrix, size] = fscanf(file,'%f',[size, size]); | |
fclose(file); |
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
/** | |
* Module with common classes, functions and etc. as utils for the whole web application. | |
*/ | |
module Utils { | |
"use strict"; | |
/** | |
* Common interface for Logger classes on client side (JavaScript). | |
*/ | |
export interface ILogger { |
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
// module with classes and logic for working with local storage in browsers via JavaScript | |
// see also: http://professorweb.ru/my/html/html5/level5/5_1.php | |
module StorageHelper { | |
export interface IStorageItem { | |
key: string; | |
value: any; | |
} | |
export class StorageItem { | |
key: string; |
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
// module with some classes that can used in the references or another parts of the application | |
module ReferencesExtensions { | |
export class ReferenceData<T> { | |
public data: KnockoutObservableArray<T>; | |
public apiPath: string; | |
logger: Utils.Logger; | |
constructor(apiPath: string) { | |
this.apiPath = apiPath; | |
this.data = ko.observableArray<T>([]); |
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
// Взято по примеру из источника: http://blog.greatrexpectations.com/2012/07/11/paging-lists-with-knockout/ | |
export class PagedObservableArray { | |
options: any; | |
//public members | |
allData: KnockoutObservableArray<any>; | |
pageSize: KnockoutObservable<number>; | |
pageIndex: KnockoutObservable<number>; | |
page: KnockoutComputed<any>; | |
pageCount: KnockoutComputed<number>; |
OlderNewer