Skip to content

Instantly share code, notes, and snippets.

p3 = mtx.loc[: , [6]]
p4 = mtx.loc[: , [7]]
t8 = mtx.loc[: , [2]]
tb = mtx.loc[: , [1]]
t9 = mtx.loc[: , [3]]
t14 = mtx.loc[: , [4]]
t15 = mtx.loc[: , [5]]
p5 = mtx.loc[: , [8]]
#print(p3)
if p3 >= 200 and p4 >= 250:
(p3.iloc[x] / (t8.iloc[x]*2) + p3.iloc[x] / (t9.iloc[x]*2)) / (p4.iloc[x] / (t14.iloc[x]*3) + p5.iloc[x] / (t15.iloc[x]*3)) = a
if a >= 0.80:
print("Conditions Met")
elif a <= 0.80:
print("Warning: Low Oxygen Levels")
def pressure = ('p')
def temperature =('t')
for all ('x') =
('x') = p/t
print('p' if pressure_input > 0.80 else 'pressure_input'= 0.80 else 'pressure_output')
if pressure_output > pressure_input = 0.80
if a >= 0.80:
print("Conditions Met")
elif a <= 0.80:
print("Warning: Low Oxygen Levels")
@nasajpledu
nasajpledu / presenting_eyes_embed
Created March 20, 2024 23:41
Example Embed Code for NASA's Eyes Application
<iframe width="100%" height="100%" src="https://eyes.nasa.gov/apps/solar-system/#/sc_voyager_1" frameborder="0" allowfullscreen></iframe>
def on_received_number(receivedNumber):
basic.show_string("" + str((receivedNumber)))
radio.on_received_number(on_received_number)
radio.set_group(2)
radio.onReceivedNumber(function (receivedNumber) {
basic.showString("" + (receivedNumber))
})
radio.setGroup(2)
def on_button_pressed_a():
radio.send_number(42)
input.on_button_pressed(Button.A, on_button_pressed_a)
radio.set_group(2)
input.onButtonPressed(Button.A, function on_button_pressed_a() {
radio.sendNumber(42)
})
radio.setGroup(2)
class GameObject:
def __init__(self, image_path, x, y, width, height):
# Player image import and resize
object_image = pygame.image.load(image_path)
self.image = pygame.transform.scale(object_image, (width, height))
self.x_pos = x
self.y_pos = y