Skip to content

Instantly share code, notes, and snippets.

View nor0x's full-sized avatar
:octocat:
🗕🗗🗙

nor0x

:octocat:
🗕🗗🗙
View GitHub Profile
@nor0x
nor0x / thisboredapedoesnotexist.ipynb
Last active February 5, 2023 16:22
thisboredapedoesnotexist.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nor0x
nor0x / TaskExtensions.cs
Last active March 18, 2022 16:03
Await extension method for Task
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)
@nor0x
nor0x / tpdne_downloader.csx
Created June 5, 2020 11:43
C# script to download images from TPDNE
using System.Net.Http;
using System.Threading;
Console.WriteLine("Hello world!");
var max=1000;
var url="https://www.thispersondoesnotexist.com/image";
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";
@nor0x
nor0x / mdi.cs
Last active March 30, 2021 18:52
Material Design Icons - Full List C# Array https://github.com/Templarian/MaterialDesign
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",
@nor0x
nor0x / csharp.json
Last active March 21, 2020 12:44
my c# snippets for vscode
{
// 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');",
@nor0x
nor0x / test.gif
Last active April 16, 2019 19:51
test.gif
test.gif
@nor0x
nor0x / image_06.jpg
Last active May 3, 2019 13:46
image_06.jpg
image_06.jpg
@nor0x
nor0x / image_05.jpg
Last active April 9, 2019 10:36
image_05.jpg
image_05.jpg
@nor0x
nor0x / image_04.jpg
Last active April 9, 2019 10:36
image_04.jpg
image_04.jpg