$sudo apt update $sudo apt install apt-transport-https ca-certificates curl software-properties-common $sudo apt install build-essential $curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add $sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $sudo apt update $sudo apt install docker-ce
This file contains hidden or 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 NamedClientModel : PageModel | |
| { | |
| private readonly IHttpClientFactory _httpClientFactory; | |
| public NamedClientModel(IHttpClientFactory httpClientFactory) => | |
| _httpClientFactory = httpClientFactory; | |
| public IEnumerable<GitHubBranch>? GitHubBranches { get; set; } | |
| public async Task OnGet() |
This file contains hidden or 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
| builder.Services.AddHttpClient("GitHub", httpClient => | |
| { | |
| httpClient.BaseAddress = new Uri("https://api.github.com/"); | |
| // using Microsoft.Net.Http.Headers; | |
| // The GitHub API requires two headers. | |
| httpClient.DefaultRequestHeaders.Add( | |
| HeaderNames.Accept, "application/vnd.github.v3+json"); | |
| httpClient.DefaultRequestHeaders.Add( | |
| HeaderNames.UserAgent, "HttpRequestsSample"); |
This file contains hidden or 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
| #include <xc.h> | |
| #include <stdbool.h> | |
| #define FCY 4000000UL | |
| #include <libpic30.h> | |
| #define LED_LD3_RED_LAT LATCbits.LATC5 | |
| #define LED_LD3_GREEN_LAT LATCbits.LATC6 | |
| #define LED_LD3_BLUE_LAT LATCbits.LATC7 | |
| #define LED_LD1_LAT LATAbits.LATA9 | |
| #define LED_LD2_LAT LATAbits.LATA10 |
This file contains hidden or 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 NATS.Client; | |
| using System; | |
| using System.Text; | |
| using System.Text.Json; | |
| using System.Threading; | |
| namespace NatsSub1 | |
| { | |
| internal class Program | |
| { |
This file contains hidden or 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 NATS.Client; | |
| using System; | |
| using System.Text; | |
| using System.Text.Json; | |
| using System.Threading; | |
| namespace NatsPub1 | |
| { | |
| internal class Program | |
| { |
This file contains hidden or 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 NATS.Client; | |
| using System; | |
| using System.Threading; | |
| namespace NatsSub1 | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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 NATS.Client; | |
| using System; | |
| using System.Text; | |
| using System.Threading; | |
| namespace NatsPub1 | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) |
This file contains hidden or 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 NATS.Client; | |
| using NATS.Client.Rx; | |
| using NATS.Client.Rx.Ops; | |
| using System; | |
| using System.Text; | |
| namespace NatsSub1 | |
| { | |
| internal class Program | |
| { |
This file contains hidden or 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 NATS.Client; | |
| using System; | |
| using System.Text; | |
| using System.Threading; | |
| namespace NatsPub1 | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) |