Skip to content

Instantly share code, notes, and snippets.

@PadreSVK
PadreSVK / ProjectDetail.dothtml
Last active November 6, 2018 15:17
Project detail before add change manager functionality
@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 November 6, 2018 15:18
Project detail after add change manager functionality
@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>
@PadreSVK
PadreSVK / Project.cs
Created November 6, 2018 15:22
Project entity
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 December 14, 2018 20:03
PS script for create dirt tree rows for my semestral thesis
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 March 14, 2019 22:00
Sample snippets of assign initial value for c# property = ICS course
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 / sablona-prace.tex
Created May 11, 2019 17:18
Sablona pre davida
% 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 13:26
Setup todo (with list and chapter link) for latex template FEKT

Add custom todo list to TOC

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

@PadreSVK
PadreSVK / README.md
Last active May 14, 2019 13:30
DirtTree setup for latex

DirtTree setup for latex

@PadreSVK
PadreSVK / README.md
Last active May 14, 2019 13:46
Setup minted package for latex template FEKT

Minted package setup

Prerequisites

  • choco install python -y
  • pip -v install pygments
  • pdflatex.exe -synctex=-1 -interaction=nonstopmode "%pm" -shell-escape