- (Random Room sizes)[https://github.com/Escartem/3-manifold] By (Escartem)[https://github.com/Escartem]
- (My Map)[https://github.com/PyMaster22/3-manifold] By (PyMaster22)[https://github.com/PyMaster22]
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
| /* Requires preprocessing with something that understands variadic macros first. */ | |
| #define CPP11 201103L | |
| #define CPP_EMPTY() | |
| #define CPP_DEFER(macro) macro CPP_EMPTY() | |
| #define CPP_GlueHelper_Actual(x,y) x##y | |
| #define CPP_Glue(x,y) CPP_GlueHelper_Actual(x,y) | |
| #define CPP_Identity(x) x | |
| #define CPP_fst(x,...) x | |
| #define CPP_snd(x,...) CPP_fst(__VA_ARGS__,CPP_Nil) | |
| #define CPP_IsProbe(...) CPP_snd(__VA_ARGS__,0) |
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 math | |
| class Vector: | |
| """a stupid vector class cause why not""" | |
| def __init__(self,x,y): | |
| """initalize self with x and y""" | |
| if((type(x)not in[int,float])or(type(y)not in[int,float])):raise TypeError("no") | |
| self.x=x | |
| self.y=y | |
| def __repr__(self): | |
| return(f"V({self.x},{self.y})") |
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 underload(code,stack=[],out="",emulator=0): | |
| depth=0 | |
| tmp="" | |
| for cmd in code: | |
| try: | |
| if(depth==0): | |
| if(cmd=="~"): | |
| tmp1=stack[-1] | |
| tmp2=stack[-2] | |
| stack[-1]=tmp2 |
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 os, math | |
| key_name = input("Private key name: ") | |
| try: security = int(input("Secity level:\n[1] 1024\n[2] 2048\n[3] 4096\n[4] Custom\n\n[3]")) | |
| except ValueError: security = 3 | |
| if(security == 4): security = math.log2(int(input("Bits: "))) - 9 | |
| cmd = "openssl genpkey -algorithm RSA -out ./"+key_name+" -pkeyopt rsa_keygen_bits:"+str(2 ** (int(security) + 9))+";openssl rsa -in ./"+key_name+" -pubout -out ./"+key_name+".pub" | |
| os.system(cmd) |
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
| | | /\ | |== | === |== |== | |
| |==| /==\ | |== | | |== |== | |
| | | / \ |=== | |=== === | |== | |
| /\ | \ / \ / | |
| /==\ | | X | |
| / \ |=== | / \ |