Skip to content

Instantly share code, notes, and snippets.

View TheBrambleShark's full-sized avatar

TheBrambleShark TheBrambleShark

View GitHub Profile
private static int ReadInt(int min = int.MinValue, int max = int.MaxValue)
{
StringBuilder sb = new StringBuilder();
do
{
ConsoleKeyInfo key = Console.ReadKey(true);
if (char.IsNumber(key.KeyChar))
{
Console.Write(key.KeyChar);
59>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(321,5): error MSB3491: Could not write lines to file "PInvoke_SafeHandle_MarshalAs_Interface.dir\Debug\PInvoke_.A2DBD5FD.tlog\PInvoke_SafeHandle_MarshalAs_Interface.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\Users\Foxtrek_64\Documents\Projects\Microsoft\coreclr\bin\tests\obj\Windows_NT.x64.Debug\Native\src\Interop\PInvoke\SafeHandles\Interface\PInvoke_SafeHandle_MarshalAs_Interface.vcxproj]
68>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(321,5): error MSB3491: Could not write lines to file "ReversePInvokePassingByRefNative.dir\Debug\ReverseP.824D51CD.tlog\ReversePInvokePassingByRefNative.lastbuildstate". The specified path, file name, or both are too long. The fully qualified f
@TheBrambleShark
TheBrambleShark / AggregateThrowable.java
Last active July 14, 2019 04:44
A Java throwable which holds a collection of other throwables. Useful for when an operation throws multiple times.
/*
* MIT License
*
* Copyright (c) 2019 LuzFaltex
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@TheBrambleShark
TheBrambleShark / LuzFaltexCommunitySeedDesc.md
Created April 9, 2020 07:26
LuzFaltex Community Seed Template

Thank you for your interest in this template. This template is the most basic of the templates I will be providing and is designed to function as a generic seed for any kind of community.

In accordance with LuzFaltex best practice on RBAC (Role Based Access Control), all roles represent a single business responsibility. This means:

  1. Administrators have permissions related to managing the guild and nothing else.
  2. Moderators have permissions related to managing users and nothing else.

If you have a user that needs to complete both duties, assign the user to both roles. Here are a list of roles in the template:

  1. Administrators - Manages the guild
@TheBrambleShark
TheBrambleShark / AsyncTaskCodeActivity.cs
Last active August 22, 2022 04:13
Open source Task-based Code Activity for use with Workflow Foundation. Licensed under the MIT license.
/*
* AsyncTaskCodeActivity
*
* Copyright (c) LuzFaltex, LLC.
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Devin Duanne",
"label": ".NET Developer",
"image": "https://cdn.discordapp.com/attachments/468748717684686868/838571583815286824/1526425392360.png",
"email": "devin.duanne@protonmail.com",
"summary": "C# development in desktop, front end, or full stack roles with server administration and application management duties.",
"location": {
"city": "Merriam",