This file contains hidden or 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 uuid | |
import datetime | |
import base64 | |
from lxml import etree | |
from signxml import XMLSigner, methods | |
SAML_ASSERTION_NS = "urn:oasis:names:tc:SAML:2.0:assertion" | |
DSIG_NS = "http://www.w3.org/2000/09/xmldsig#" | |
NSMAP = {"saml": SAML_ASSERTION_NS, "ds": DSIG_NS} |
This file contains hidden or 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
def REPEATS 100 | |
(def v [(atom 0)(atom 0)(atom 0)(atom 0)(atom 0)(atom 0)(atom 0)(atom 0)(atom 0)(atom 0)]) | |
(dotimes [_ REPEATS] (swap! (nth v (rand-int 10)) inc)) | |
(map #(do(dotimes [_ @%] (print "|"))(println)) v) |