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
static void Parser() | |
{ | |
var src = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); | |
if (src == null) throw new Exception(); | |
src = Path.Combine(src, "..\\..\\..\\assets", "blocks.json"); | |
var blocks = JsonConvert.DeserializeObject<Dictionary<string, Lava.Blocks.json.BlockInfo>>(File.ReadAllText(src)); | |
List<string> b = new List<string>(); |
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.Diagnostics; | |
using System.Numerics; | |
MPI.Environment.Run(ref args, comm => | |
{ | |
if (comm.Rank == 0) | |
{ | |
BigInteger x = BigInteger.Parse(args[0]); | |
BigInteger res = 1; |
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; | |
using System.Net; | |
using System.Threading.Tasks; | |
namespace ParseCorrectPages | |
{ | |
class Source | |
{ |
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.Threading; | |
namespace Project | |
{ | |
class Program | |
{ | |
private static List<Fork> fork = new (); |
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.Threading; | |
using System.Threading.Tasks; | |
namespace Project | |
{ | |
class Program | |
{ | |
private struct FnProp | |
{ |
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.Diagnostics; | |
using System.Threading; | |
namespace Project | |
{ | |
class Program | |
{ | |
private static readonly Mutex m = new (); | |
private const int N = 1000; |
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; | |
try | |
{ | |
Client server = new (new Idle()); | |
server.Click(); | |
server.Success(); | |
server.Click(); | |
server.Failure(); | |
server.Retry(); |
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; | |
using System.Numerics; | |
using System.Threading; | |
Enumerable.Range(1, 7).ToList().ForEach(n => | |
{ | |
static BigInteger factorial(BigInteger a, BigInteger b) | |
{ |
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.Threading; | |
List<byte[]> buffer = new List<byte[]>(); | |
List<string> Args = new(args); | |
bool showMessage = Args.Contains("-msg"); | |
bool mbArg = false; | |
int maxMB = 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
import java7.util.regex.Pattern; | |
public class MatMatcher { | |
private String[] words = new String[]{ | |
//ass(es)? | |
"a[\\W_]*s[\\W_]*s(?:[\\W_]*e[\\W_]*s)?", | |
//fuck(ing)? | |
"f[\\W_]*u[\\W_]*c[\\W_]*k(?:[\\W_]*i[\\W_]*n[\\W_]*g)?", | |
//ж(ыд(у|ов)?|оп(а(х)?|у|ой)) | |
"ж[\\W_]*(?:[ыиiu][\\W_]*[дd](?:[\\W_]*[уыаyiau]|[\\W_]*[оo0][\\W_]*[вbv])?|[оo0][\\W_]*[пnp][\\W_]*(?:[аa](?:[\\W_]*[хxh])?|[уеыeyiu]|[оo0][\\W_]*[йj]))", |
OlderNewer