Skip to content

Instantly share code, notes, and snippets.

View nickofc's full-sized avatar
🏴‍☠️

nickofc

🏴‍☠️
View GitHub Profile
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.DataContext>
<local:ViewModel/>
{
"Payload": {
"version": {
"name": "RPGCORD 1.7.x-1.13.x",
"protocol": 401
},
"players": {
"max": 100,
"online": 7
},
public static class TaxCalculatorFactory
{
public static ITaxCalculator GetForCountry(Country country)
{
switch (country)
{
case Country.Poland:
return new PolandTaxCalculator();
case Country.England:
return new EnglandTaxCalculator();
public static class TaxCalculatorFactory
{
public static ITaxCalculator GetForCountry(Country country)
{
switch (country)
{
case Country.Poland:
return new PolandTaxCalculator();
case Country.England:
return new EnglandTaxCalculator();
public static class TaxCalculatorFactory
{
public static ITaxCalculator GetForCountry(Country country)
{
switch (country)
{
case Country.Poland:
return new PolandTaxCalculator();
case Country.England:
return new EnglandTaxCalculator();
@nickofc
nickofc / gist:1b01a23bf29d7f8697af6cc720ea4f20
Created December 31, 2020 23:24
restream from twitch tv to youtube live
ffmpeg -i https://video-weaver.waw01.hls.ttvnw.net/v1/playlist/file.m3u8 -c copy -bsf:a aac_adtstoasc -f flv rtmp://a.rtmp.youtube.com/live2/{youtube-key}