This gist represents a collection of code snippets to be used during the Hands-on workshop: Modernize your Web Forms app using DotVVM. Original repo: https://github.com/riganti/dotvvm-samples-wingtip-toys
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
public class ProductsController : ApiController | |
{ | |
private static Dictionary<int, Product> products = new Dictionary<int, Product>(); | |
static ProductsController() | |
{ | |
products.Add(1, new Product() { Name = "Rohlík", Category = "Jídlo", UnitsOnStock = 100 }); | |
products.Add(2, new Product() { Name = "Hrábě", Category = "Nářadí", UnitsOnStock = 5 }); | |
products.Add(3, new Product() { Name = "Coca Cola", Category = "Nápoje", UnitsOnStock = 10 }); |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using Riganti.Utils.Infrastructure.Core; | |
namespace Blog.DAL | |
{ | |
public class Article : IEntity<int> | |
{ | |
public int Id { get; set; } |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Application xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="ChatApp.Client.App"> | |
<Application.Resources> | |
<!-- Application resource dictionary --> | |
</Application.Resources> | |
</Application> |
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
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading.Tasks; | |
namespace EchoServer | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
PuTTY-User-Key-File-2: ssh-rsa | |
Encryption: none | |
Comment: rsa-key-20170405 | |
Public-Lines: 6 | |
AAAAB3NzaC1yc2EAAAABJQAAAQEAh1VjMlI0g7nvYMoYX3ZmF5jLfXF8jMOfPnhX | |
29ehMu48I/snuvomy/OSBPaomPfIgKgaVwrWbZL1XjOcwRm6+0zLkze7vtMgUePj | |
0RwfkJudR3eTQBueRL1PFIT41Vmtze1rWVpOk8NAypT7R2F0YTSBLw71TypEq3En | |
ijvQTSlcVvmWG8fd0OmEPLxlDJl7UWVbCBPThko7Bf4dopB2O9y4ZlJBbl8YAgL6 | |
H5yhYPPPwrIOdP8NWa3tcW+y/JwROw6DIEFE6ZdzCo3E23llKFTCRUwpEnHBgog0 | |
FqLdl1ow2rn6Oerh66L+7hb+bBgL15LLiWZqx+wu0RaDnkGJdw== |
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
@viewModel DotvvmLovesJsSample.ViewModels.DefaultViewModel, DotvvmLovesJsSample | |
@jsModule Scripts/map | |
<h1>Map Demo</h1> | |
<div id="map"></div> | |
<form> | |
<div>Latitude: <dot:TextBox Text="{value: Lat} /></div> | |
<div>Longitude: <dot:TextBox Text="{value: Lng} /></div> |
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
TSLA;302 | |
TSLA;913 | |
META;892 | |
GOOG;212 | |
TSLA;427 | |
TSLA;624 | |
AMZN;89 | |
NVDA;246 | |
MSFT;671 |