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 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 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 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 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; |
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 bool IsNullable<T>(T value) | |
{ | |
return Nullable.GetUnderlyingType(typeof(T)) != null; | |
} |
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 TS3AudioBot.Audio; | |
using TS3AudioBot.Helper; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using TS3Client; | |
using TS3Client.Full; |
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
//+ IPv4Mask {255.255.255.0} System.Net.IPAddress | |
//+ Address {10.0.0.6} System.Net.IPAddress | |
/// <summary> | |
/// Get all IPAdresses which are in the current subnet | |
/// </summary> | |
/// <returns></returns> | |
public static List<IPAddress> GetAllIp() | |
{ | |
var retVar = new List<IPAddress>(); |
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.Runtime.CompilerServices; | |
namespace TestingEnv | |
{ | |
internal class XoRCrypto | |
{ | |
private readonly int[] _keyChain; | |
private int _ckey; | |
public XoRCrypto(int[] chain = null) |
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; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading; | |
using JSocket.Utilities.Extensions; |
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 class FastList<T> | |
{ | |
private readonly List<T> _internalList = new List<T>(); | |
public int Count => _count; | |
private int _count; | |
private int _freeIndex; | |
public T this[int index] => _internalList[index]; | |
public int Add(T input) |