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
from sys import argv | |
magic = 28 # Defined here in case it needs to be changed. | |
with open(argv[1], 'rb') as dwf: | |
data = bytearray(dwf.read()) | |
count = 0 | |
for byte in data: |
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
avg char height 1.6 | |
avg eye level 1.5 | |
avg char diameter 0.4 | |
floor thickness 0.4 | |
wall thickness 0.2 | |
wall height 3.2 residential | |
wall height 3.6 commercial | |
door width 1.2 | |
door height 2.2 | |
stair rise 0.2 |
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
"""Copyright 2019 Uradamus | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without restriction, | |
including without limitation the rights to use, copy, modify, merge, | |
publish, distribute, sublicense, and/or sell copies of the Software, | |
and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |
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
#!/usr/bin/env python3 | |
from sys import argv | |
ior = float(argv[1]) | |
specular = ((ior-1)/(ior+1))**2/0.08 | |
print(round(specular, 3)) |
OlderNewer