Skip to content

Instantly share code, notes, and snippets.

public class Program {
public static void Main(string[] args) {
// This kinda works I guess
List<byte> newList2 = new List<byte>({1, 2, 3);
Dictionary<int, byte> ListOfValues2 = new Dictionary<int, byte>();
ListOfValues2.Add(100, 3);
ListOfValues2.Add(200, 2);
ListOfValues2.Add(300, 1);
int firstToProcessRow = 0;
Public Module Program
Public Sub Main(args() As String)
'This kinda works I guess
Dim newList2 As New List(Of Byte)({1, 2, 3})
Dim ListOfValues2 As New Dictionary(Of Integer, Byte)
ListOfValues2.Add(100, 3)
ListOfValues2.Add(200, 2)
ListOfValues2.Add(300, 1)
using System;
using System.Linq;
namespace ConsoleApp2
{
class Program
{
public static byte[][] Uniques;
public static byte[][] ProcessedBits;
public static byte[] PlainText;
public byte[][] Uniques;
public byte[][] ProcessedBits;
public byte[] PlainText;
public byte[] bitmask;
private void btnGenerate_Click(object sender, EventArgs e)
{
txtPlainText.Text = txtPlainText.Text.Replace("[", "");
txtPlainText.Text = txtPlainText.Text.Replace("]", "");
txtPlainText.Text = txtPlainText.Text.Replace(" ", " ");
Private Sub btnGenerate_Click(sender As Object, e As EventArgs) Handles btnGenerate.Click
txtPlainText.Text = Replace(txtPlainText.Text, "[", "")
txtPlainText.Text = Replace(txtPlainText.Text, "]", "")
txtPlainText.Text = Replace(txtPlainText.Text, " ", " ")
txtPlainText.Text = txtPlainText.Text.TrimStart(CChar(" "))
txtPlainText.Text = txtPlainText.Text.TrimEnd(CChar(" "))
Dim values() As Byte = Split(txtPlainText.Text, " ").[Select](Function(n) Byte.Parse(n)).ToArray()
'Clear uniques from previous runs.
Uniques = Nothing
@fatrolls
fatrolls / undef.md
Created May 18, 2021 19:12 — forked from hmemcpy/undef.md
Disabling Visual Studio Git Provider

Here's how to disable the package that is responsible for loading the Git source control support in Visual Studio. Use at your own risk!

  • Create a file called devenv.pkgundef and place it next to devenv.exe in you Visual Studio's Common7\IDE (you'll need elevation for this)
  • Add the following entries to the file:
[$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}]
[$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]
  • Close VS if open, open a Developer command prompt, and type devenv /updateconfiguration