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.Reflection; | |
| using System.Text; | |
| // Custom attribute to mark a property as required | |
| [AttributeUsage(AttributeTargets.Property)] | |
| public class GBNFSchemaRequiredAttribute : Attribute { } |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Sailing Schedule</title> | |
| <style> | |
| /* Add some basic styling */ | |
| #sailing-schedule-module { | |
| font-family: Arial, sans-serif; |
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
| string[] LP = new string[] { | |
| "DH869*", | |
| "DHB69", | |
| "DH69", | |
| //"DH869", | |
| "H689", | |
| "DH89" | |
| }; | |
| // Produces "DH869" - based on the LP data |
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
| if(System.Environment.GetCommandLineArgs().Length == 0) { | |
| Console.Write("Add something to the blockchain:\n> "); | |
| AddBlock(Console.ReadLine()); | |
| } else { | |
| switch (System.Environment.GetCommandLineArgs()[0]) { | |
| case "-v": CheckBlockChain(); break; | |
| default: AddBlock(System.Environment.GetCommandLineArgs()[0]); break; | |
| } | |
| } |
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.Globalization; | |
| using System.Text; | |
| using System.Xml.Serialization; | |
| string annotationdir = @"D:\Work\Datasets\AnnotationsXML\001plate"; | |
| string imagedir = @"D:\Work\Datasets\Images\001plate"; | |
| string[] annotations = Directory.GetFiles(annotationdir); | |
| string[] images = Directory.GetFiles(imagedir); |
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 SharpNL.DocumentCategorizer; | |
| using SharpNL.Extensions; | |
| using SharpNL.Tokenize; | |
| using SharpNL.Utility; | |
| [Serializable] | |
| public class IntentModel : IObjectStream<DocumentSample> | |
| { | |
| public string Intent { get; set; } |
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
| // Define the Regex fetch from the log | |
| using System.Text.RegularExpressions; | |
| Regex RegexMatch = new("((http)+[a-zA-Z://.]*)\r\n(Status:\\s+[0-9]*)"); | |
| // Search all files and log them out to the console | |
| Directory.GetFiles(Environment.CurrentDirectory, "*.log") | |
| .Select(f => File.ReadAllText(f)) | |
| .SelectMany(r => RegexMatch.Matches(r) | |
| .Select(m => m.Value)) | |
| //.Where(w => !w.Contains("lol")) // filter out things that contain "lol" and discard them |
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 Newtonsoft.Json; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Runtime.Serialization.Formatters.Binary; | |
| using System.Text.RegularExpressions; | |
| using System.Threading; |
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
| .intel_syntax noprefix | |
| .global main | |
| pandas: | |
| .string "PANDA" | |
| .zero 4 | |
| .string "THUNDER" | |
| .zero 2 | |
| .string "TENT" | |
| .zero 5 |
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.IO; | |
| using System.Linq; | |
| namespace qubit | |
| { | |
| public class QuBitInterpreter { | |
| public static byte[] stack; | |
| public static int pointer; |
NewerOlder