View Compare-ADGroupMembership.ps1
Function Compare-ADGroupMembership { | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory=$true,ValueFromPipeline=$true)] | |
[Alias('Name')] | |
[string[]]$Username | |
) | |
BEGIN { | |
$groups = @{} |
View PYUITest.py
#Attempt to load a .pyui file and generate code that would produce the same results. | |
#Note: this doesn't actually work yet. | |
from __future__ import print_function | |
infilename = raw_input("Input File?") | |
#infilename = "RegexSandbox.pyui" | |
outfilename = infilename + ".py" | |
f = open(infilename, "r") |
View DiceProb.py
import re | |
dice = [] #Input dice as polynomial coefficients | |
print "Enter face values as non-negative integers, separated by spaces, commas, or semicolons. (e.g. \"1,2;3 4 5 6\")" | |
while True: | |
rawdie = [] #List of face values | |
qty = 1 #Quantity of a single die spec | |
inp = raw_input("Die " + str(len(dice) + 1) + "? ") |
View ImageResize.py
#Gist ID: 9951701907ed328218dd | |
import console | |
import photos | |
from PIL import Image | |
from PIL.ExifTags import TAGS | |
def adjust(dim, newdim): | |
newdim = newdim.strip() | |
try: | |
if newdim[-1] == "%": |