Skip to content

Instantly share code, notes, and snippets.

View B-CCCPcekca-HET's full-sized avatar
🌴
On vacation

B_CCCPcekca_HET B-CCCPcekca-HET

🌴
On vacation
  • null
View GitHub Profile
@Calabonga
Calabonga / ILocalStorageService.cs
Created December 1, 2020 05:19
Blazor LocalStorageService
public interface ILocalStorageService
{
Task SetAsync<T>(string key, T item) where T: class;
Task SetStringAsync(string key, string value);
Task<T> GetAsync<T>(string key) where T: class;
Task<string> GetStringAsync(string key);
@DanielSWolf
DanielSWolf / Program.cs
Last active July 16, 2024 20:29
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);