Skip to content

Instantly share code, notes, and snippets.

View MattUebel's full-sized avatar
:octocat:

Matt Uebel MattUebel

:octocat:
  • GitHub Staff
  • Northcentral Ohio
View GitHub Profile
@MattUebel
MattUebel / tashas_hideous_laughter_sim.py
Last active June 13, 2021 21:11
simulates an execution of Tasha's Hideous Laughter 100,000 times
import random
NOUN_LIST = ["apple", "cow", "tree", "hat", "dog", "magic", "bolt", "arrow"]
ADJECTIVE_LIST = ["red", "big", "small", "good", "bad", "old", "new", "young"]
CARD_TYPES = ["creature", "land", "spell"]
CARD_TYPE_WEIGHTS = (30, 50, 30)
class MagicCard:
def __init__(self):
@MattUebel
MattUebel / GetBinaryType.ps1
Created April 3, 2012 14:35
Get-BinaryType function Finds bitness of .exe witih Powershell
function Get-BinaryType
{
<#
.SYNOPSIS
Gets the binary executable type for a given set of files
.DESCRIPTION
PowerShell wrapper around the GetBinaryType Windows API that inspects file headers
and reports the binary file type (e.g., 32-bit Windows app, 64-bit Windows app,
16-bit DOS/Windows app, etc.)