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 BigHashSet<T> | |
| { | |
| int count = 0; | |
| private List<HashSet<T>> hashes = new List<HashSet<T>>(); | |
| public void Add(T item) | |
| { | |
| int pos = count / 10000000; | |
| if (pos >= hashes.Count) | |
| { | |
| hashes.Add(new HashSet<T>()); |
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; | |
| class Program | |
| { | |
| class _class | |
| { | |
| public readonly int readOnly = 1; | |
| public _class() { } | |
| public _class(int newValue) | |
| { |
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
| import java.lang.*; | |
| public class First { | |
| public static void main(String[] args) { | |
| System.out.println("This is my first Java program."); | |
| } | |
| } | |
| /* |
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 BkGround | |
| { | |
| public class ResultCls | |
| { | |
| public Exception ex { get; set; } | |
| public object output { get; set; } | |
| public ResultCls() | |
| { | |
| } |
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 BigHashSet<T> : IEnumerable<T> | |
| { | |
| private const ulong StartSize = 1 << 19; | |
| private BigArray<ulong> _hashBuckets; | |
| private ulong _hashCode; | |
| private BigArray<Slot> _slots; | |
| public ulong Count { get; private set; } | |
| public ulong Length {get{ |
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
| class MyThreadPool | |
| { | |
| private volatile int _inQueue; | |
| private volatile int _outQueue; | |
| private volatile int _total; | |
| CancellationTokenSource cts = new CancellationTokenSource(); | |
| public float Percentage | |
| { | |
| get |
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
| memory_limit = 2048M | |
| upload_max_filesize = 64M | |
| post_max_size = 64M | |
| max_execution_time = 50000 | |
| max_input_vars = 3000 |
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
| # change the <USR> with your cpanel username | |
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d |
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
| [Serializable] | |
| public class BigArray<T> : IEnumerable<T> | |
| { | |
| private readonly T[][] _arrays; | |
| public ulong Length { get; private set;} | |
| public T this[ulong index] | |
| { | |
| get | |
| { |
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 AverageValues | |
| { | |
| public int intialValue { get; private set; } | |
| public int currentValue = 0; | |
| double oldResult = 0; | |
| bool StopIncrease = false; | |
| int incrementValue = 0; | |
| public AverageValues(int intialValue = 100, int incrementValue = 10) | |
| { | |
| this.intialValue = intialValue; |