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
//downloads all image data from https://storage.googleapis.com/panels-cdn/ | |
//add auth to your buckets guys 🧐 | |
using System.Text.Json; | |
using System.IO ; | |
var allUrl = "https://storage.googleapis.com/panels-cdn/data/20240730/all.json"; | |
var json = await new System.Net.Http.HttpClient().GetStringAsync(allUrl); | |
List<string> urls = new(); | |
var doc = JsonDocument.Parse(json); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 static class TaskExtensions | |
{ | |
public async static void Await(this Task task, Action onCompleted, Action<Exception> onError) | |
{ | |
try | |
{ | |
await task; | |
onCompleted?.Invoke(); | |
} | |
catch (Exception ex) |
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.Net.Http; | |
using System.Threading; | |
Console.WriteLine("Hello world!"); | |
var max=1000; | |
var url="https://www.thispersondoesnotexist.com/image"; | |
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 static class FluentIconFont | |
{ | |
public const string PageLink = "\uE302"; | |
public const string CommentSolid = "\uE30E"; | |
public const string ChangeEntitlements = "\uE310"; | |
public const string Installation = "\uE311"; | |
public const string WebAppBuilderModule = "\uE313"; | |
public const string WebAppBuilderFragment = "\uE314"; | |
public const string WebAppBuilderSlot = "\uE315"; | |
public const string BullseyeTargetEdit = "\uE319"; |
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
static string[] icons = new string[] { | |
"mdi-air-humidifier-off", | |
"mdi-chili-off", | |
"mdi-cigar-off", | |
"mdi-clock-time-eight", | |
"mdi-clock-time-eight-outline", | |
"mdi-clock-time-eleven", | |
"mdi-clock-time-eleven-outline", | |
"mdi-clock-time-five", | |
"mdi-clock-time-five-outline", |
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
{ | |
// Place your snippets for csharp here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |



NewerOlder