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 Newtonsoft.Json; | |
namespace BackgroundServices.Models | |
{ | |
public class OpenWeatherMain | |
{ | |
[JsonProperty("temp")] | |
public double Temperature { get; set; } | |
[JsonProperty("pressure")] |
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.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.EntityFrameworkCore; | |
namespace DAL.Query.AllCity | |
{ | |
public class AllCityQueryResult | |
{ | |
public string CityName { 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
using System.Linq; | |
namespace DAL | |
{ | |
public class DatabaseSeed | |
{ | |
private readonly OpenWeatherDbContext openWeatherDbContext; | |
public DatabaseSeed(OpenWeatherDbContext openWeatherDbContext) | |
{ |
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.Threading.Tasks; | |
using DAL.Models; | |
using Microsoft.Extensions.Logging; | |
namespace DAL.Repositories.Abstraction | |
{ | |
public interface IRepository<TEntity, in TId> | |
where TEntity : ModelBase<TId> | |
{ |
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.ComponentModel.DataAnnotations.Schema; | |
namespace DAL.Models | |
{ | |
public abstract class ModelBase<TId> | |
{ | |
public TId 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
public class OpenWeatherMain | |
{ | |
[JsonProperty("temp")] | |
public double Temperature { get; set; } | |
[JsonProperty("pressure")] | |
public int Pressure { get; set; } | |
} | |
public class OpenWeatherRoot |
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
const buildString = function(template, values) { | |
return new Function(...Object.keys(values), `return \`${template}\`;`)(...Object.values(values)); | |
} | |
let myTemplate = "http://localhost:5001/${currency}/${address}?${queryParams}" | |
let values = { currency : "BTC", address: "548as1d35as1das35da53a1sd51ad3as", queryParams : "items=1000&filterBy=test" } | |
buildString(myTemplate,values) |
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
<Project> | |
<PropertyGroup> | |
<LangVersion>8.0</LangVersion> | |
<WarningsAsErrors>CS8600;CS8601;CS8602;CS8603;CS8604;CS8609;CS8614;CS8618;CS8625;CS8631</WarningsAsErrors> | |
</PropertyGroup> | |
</Project> |
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
$projectsString = "Databáze hudebních skupin;Databáze restauračních zařízení s možností hodnocení zákazníky;Databáze záklazníků mobilního operátora (se záznamem tarifů, platnosti atd.);Databázový systém pro sázkovou kancelář na sportovní výsledky;Designér pasivních RLC filtrů;Elektronická kniha jízd;Elektronická zdravotní knižka (databáze pacientů);Elektronický diář;Elektronický index (pro více studentů);Elektronický systém pro hru Bingo ;Generátor sportovní týmové ligy s databází výsledků;Kalkulačka pro počty s maticemi;Karetní hra;Lékárnická databáze;Program pro interaktivní testy;Přehledová databáze automobilů;Rezervační systém multikina;Řešení soustav lineárních rovnic;Správa domácího rozpočtu;Statistická kalkulačka (průměr, rozptyl, histogramy);Textová hra - adventura;Vědecká kalkulačka pro elektrotechnika (komplexní čísla) ;Databáze hradů a zámků;Databáze knihkupectví;Hra odebírání zápalek;Databáze poštovních známek ve sbírce;Hra lodě;Databáze sportovců"; | |
$projects = [System.Collections.ArrayList]$proj |
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
@echo off | |
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f | |
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" | |
cd %userprofile%\documents\ | |
attrib Default.rdp -s -h | |
del Default.rdp |