This file contains 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
Function Compare-ADGroupMembership { | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory=$true,ValueFromPipeline=$true)] | |
[Alias('Name')] | |
[string[]]$Username | |
) | |
BEGIN { | |
$groups = @{} |
This file contains 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
#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") |
This file contains 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
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) + "? ") |
This file contains 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
#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] == "%": |