Skip to content

Instantly share code, notes, and snippets.

@PadreSVK
PadreSVK / ProjectDetail.dothtml
Last active Nov 6, 2018
Project detail before add change manager functionality
View ProjectDetail.dothtml
@viewModel DotVVM.Samples.NestedViewModel.ViewModels.Projects.ProjectDetailViewModel, DotVVM.Samples.NestedViewModel
@masterPage Views/MasterPage.dotmaster
<dot:Content ContentPlaceHolderID="MainContent">
<div DataContext="{value: Project}">
<h1 InnerText="{value: Title}" />
<small InnerText="{value: Manager.FullName}" />
<p InnerText="{value: Description}" />
</div>
</dot:Content>
@PadreSVK
PadreSVK / ProjectDetail.dothtml
Last active Nov 6, 2018
Project detail after add change manager functionality
View ProjectDetail.dothtml
@viewModel DotVVM.Samples.NestedViewModel.ViewModels.Projects.ProjectDetailViewModel, DotVVM.Samples.NestedViewModel
@masterPage Views/MasterPage.dotmaster
@import DotVVM.Samples.NestedViewModel.Resources
<dot:Content ContentPlaceHolderID="MainContent">
<div DataContext="{value: Project}">
<h1 InnerText="{value: Title}" />
<br>
<dot:Literal Text="{resource: Texts.Label_Manager}" /><small InnerText="{value: Manager.FullName}" />
<dot:Button Click="{command: _parent.InitModal()}" Visible="{value !_parent.IsModalVisible}" Text="{resource: Texts.Label_ChangeManager}"></dot:Button>
View Project.cs
public class Project : IEntity<int>
{
public string Description { get; set; }
public string Title { get; set; }
public int Id { get; set; }
}
@PadreSVK
PadreSVK / CreateDirtTreeRows.ps1
Created Dec 14, 2018
PS script for create dirt tree rows for my semestral thesis
View CreateDirtTreeRows.ps1
function CreateDirtTree($folderRoot, $level)
{
if(-not $(Test-Path $folderRoot))
{
Write-Error "Path do not exist"
return
}
if(-not $level){
$level = 1
}
@PadreSVK
PadreSVK / MessageBase.cs
Last active Mar 14, 2019
Sample snippets of assign initial value for c# property = ICS course
View MessageBase.cs
using System;
namespace ICS_project.DAL.Entities
{
public abstract class MessageBase : EntityBase
{
// compiler generate for you code from MessageBase1.cs, and initialize property with default value
public DateTime CreationDate { get; } = DateTime.Now;
public string Content { get; set; }
public UserEntity User { get; set; }
}
@PadreSVK
PadreSVK / README.md
Last active May 14, 2019
Setup minted package for latex template FEKT
View README.md

Minted package setup

Prerequisites

  • choco install python -y
  • pip -v install pygments
  • pdflatex.exe -synctex=-1 -interaction=nonstopmode "%pm" -shell-escape
@PadreSVK
PadreSVK / README.md
Last active May 14, 2019
Setup todo (with list and chapter link) for latex template FEKT
View README.md

Add custom todo list to TOC

usage => \todo{..... here is some stupid thing....}

View sablona-prace.tex
% Soubory musí být v kódování, které je nastaveno v příkazu \usepackage[...]{inputenc}
\documentclass[%
% draft, % Testovací překlad
12pt, % Velikost základního písma je 12 bodů
a4paper, % Formát papíru je A4
% oneside, % Jednostranný tisk (výchozí)
%% Z následujicich voleb lze použít maximálně jednu:
% dvipdfm % výstup bude zpracován programem 'dvipdfm' do PDF
% dvips % výstup bude zpracován programem 'dvips' do PS
@PadreSVK
PadreSVK / README.md
Last active May 14, 2019
DirtTree setup for latex
View README.md

DirtTree setup for latex

You can’t perform that action at this time.