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
| /* | |
| Usage: | |
| var spinner = new SpectreConsoleSpinner() | |
| .WithRenderer(RenderableSpinner.SpinnerRenderer.Colored(Color.Rainbow)); | |
| // Checking logic | |
| table.UpdateCell(currentRow, 0, spinner); | |
| */ | |
| using System; |
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
| /* | |
| Problem: You want to inline arguments in a FormattableString. | |
| Example: | |
| return queryable.FromSqlInterpolated($@" | |
| SELECT * | |
| FROM {tableName} | |
| WHERE dbo.compare({columnName}, {lowerString}) >= 0 | |
| AND dbo.compare({columnName}, {upperString}) <= 0 | |
| "); |
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 System;using System.Collections;using System.Collections.Generic;using System.Diagnostics;using System.Globalization;using System.IO;using System.Linq;using System.Linq.Expressions;using System.Net;using System.Net.Configuration;using System.Reflection;using System.Runtime.CompilerServices;using System.Runtime.InteropServices;using System.Text;using System.Text.RegularExpressions;using System.Threading;using System.Threading.Tasks;using CrawlerNGLib.models;using Microsoft.CSharp.RuntimeBinder;using Newtonsoft.Json;using NLog;using ns0;namespace CrawlerNGLib{public class HttpHandler{public HttpHandler(string serverUrl, string username, string password, string customUseragent, WebProxy webProxy){this.string_11 = serverUrl;this.string_13 = username;this.string_10 = password;this.string_12 = customUseragent ?? "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36";this.webProxy_0 = webProxy;HttpHandler.logger_0.Debug("[HttpHandler] Initialized.");Ht |
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 BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Diagnostics.Windows.Configs; | |
| using BenchmarkDotNet.Running; | |
| using Interop_pg; | |
| using Interop_Pg.Extensions; | |
| [MemoryDiagnoser] | |
| [InliningDiagnoser(true, true)] |
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 AudibleTag | |
| { | |
| public string LONG_DESCRIPTION { get; set; } | |
| /// <summary> | |
| /// eg: Transport: Transport 1 | |
| /// </summary> | |
| public string SHORT_TITLE { get; set; } | |
| /// <summary> |
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
| // ==UserScript== | |
| // @name New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://www.iboys.at/search/* | |
| // @grant none | |
| // ==/UserScript== |
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 FragmentedArray<T> : IEnumerable<T> | |
| { | |
| private T[][] _fragments; | |
| private int _fragmentSize; | |
| public int Size { get; } | |
| public FragmentedArray(int size, int chunks = 3) | |
| { | |
| Size = size; | |
| _fragmentSize = size / chunks; |
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 CategoryDao : IDisposable, IAsyncDisposable | |
| { | |
| private readonly GraphContext context; | |
| public CategoryDao(GraphContext context) | |
| { | |
| this.context = context; | |
| } | |
| public async Task<Category> FindByIdAsync(int categoryId, IEnumerable<string> requiredFields = null) |
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
| // ==UserScript== | |
| // @name EasyBank larger paging | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author J-Kit | |
| // @match https://ebanking.easybank.at/InternetBanking/InternetBanking/* | |
| // @grant none | |
| // ==/UserScript== |
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 System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace FluentHandler | |
| { | |
| internal class CustomHandler | |
| { | |
| private readonly List<ICheckable> _ceckables; |