@anonymous/

AwfulSlategrayEnvironments

Python 2.7

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4007803486282937","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"IyBEZXNjYXJ0ZXMgd2FzIHdyb25nLiBIaXMgcHJvYmxlbSB3YXMgZWdvY2VudHJpc20uCiMgRG8gSSBleGlzdD8gWWVzLCBidXQgSSBhbSBmb3JnZXR0aW5nIHNvbWV0aGluZyAgZXhpc3RlZCBiZWZvcmUgbWUuCiMgVGhlIFVuaXZlcnNlIGV4aXN0cy4gSSBhbSBhIHByb2R1Y3Qgb2YgdGhlIHVuaXZlcnNlLiBUaGlzIHRoaW5nIHRoYXQgSSBjYWxsICJUaGUgVW5pdmVyc2UiIGNyZWF0ZWQgbWUuCgojIEhhdmluZyBjYWxsZWQgbXlzZWxmIGFuIGF0aGVpc3QgZm9yIHRoZSBsb25nZXN0IG9mIHRpbWUgSSB3aWxsIHN0YXJ0IHdpdGggbXkgVFJVRSBiZWxpZWZzLgojIFRoZSB1bml2ZXJzZSBpcyB0aGUgc2V0IG9mIEV2ZXJ5dGhpbmcKVW5pdmVyc2UgPSBbXQoKIyBXZSBkb24ndCBrbm93IHdoYXQgYSAiSHVtYW4iIGlzIGVpdGhlciwgYnV0IGNvbGxvcXVpYWxseSB3ZSBhY2NlcHQgdGhhdCB3ZSBBUkUgSHVtYW5zCmNsYXNzIEh1bWFuKG9iamVjdCk6CiAgZGVmIF9faW5pdF9fKHNlbGYsIG5hbWUpOgogICAgICBzZWxmLm5hbWUgPSBuYW1lCgojIEkgYW0gYSBodW1hbi4gTXkgbmFtZSBpcyBUaW1lU2Vla2VyCkkgPSBIdW1hbigiVGltZVNlZWtlciIpCiMgSSBhbSBwYXJ0IG9mIHRoZSB1bml2ZXJzZQpVbml2ZXJzZS5hcHBlbmQoSSkKCiMgQWxzbyBJIGFtIGFuIGF0aGVpc3QsIGFuZCBzbyBhbnkg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2ggYSB3YXkKIyB0aGF0IGl0IHBhc3NlcyB0aGUgdW5pdCB0ZXN0IGJlbG93OgpkZWYgdGVzdF9pZl9leGlzdHMoaW5wdXQpOgogICAgcmV0dXJuIGV4aXN0cyhpbnB1dCkgPT0gVHJ1ZQoKcHJpbnQoIlRlc3RpbmcgZm9yIHRoZSBleGlzdGVuY2Ugb2YgdGhlIFVuaXZlcnNlLCBTZWxmIGFuZCBHb2QiKQpmb3Igb2JqIGluIFtVbml2ZXJzZSwgSSwgR29kLCBVbmljb3Juc106CiAgICBwcmludCh0ZXN0X2lmX2V4aXN0cyhvYmopKQo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Descartes was wrong. His problem was egocentrism.
# Do I exist? Yes, but I am forgetting something  existed before me.
# The Universe exists. I am a product of the universe. This thing that I call "The Universe" created me.

# Having called myself an atheist for the longest of time I will start with my TRUE beliefs.
# The universe is the set of Everything
Universe = []

# We don't know what a "Human" is either, but colloquially we accept that we ARE Humans
class Human(object):
  def __init__(self, name):
      self.name = name

# I am a human. My name is TimeSeeker
I = Human("TimeSeeker")
# I am part of the universe
Universe.append(I)

# Also I am an atheist, and so any reference to God is a no-no!
class God(object):
    def __init__(self):
      reminder = "Gods don't exist, stupid!"
      raise RuntimeError(reminder)

try:
    #### Lets try and spawn Yahwe
    Yahwe = God()
except RuntimeError, e:
    print(e)

# Also - we are still looking for Unicorns!
class Unicorns(object):
  pass
    

# This is my world now. This is the world that exists in MY HEAD. This where I find myself..
# But I am full of doubt and insecurity, and the answers everybody keeps giving don't FEEL good enough!
# SOMETHING is missing here. I FEEL that I am correct! I FEEL that everybody else is missing something!
# Still I doubt! I doubt my own understanding, I doubted Truth itself!

# And so I ask these questions:
try:
    print("Does the universe exist: {}".format( exists(Universe) == True ))
except NameError, e:
     print(e)
    
# Oopps. Existence is undefined.
def exists(something):
    # So... define existence
    pass


print("Does the universe exist: {}".format( exists(Universe) == True ))
print("Do Humans exist: {}". format( exists(Human) == True ))
print("Do I exist: {}".format( exists(I) == True ))
# Remember. I am an atheist. And so I believe God doesn't exist, but I am also a scientist - so a healthy dose of skepticism is necessary.
print("Does God exis: {}". format( exists(God) == True ))
print("Do Unicorns exist: {}".format (exists(Unicorns) == True ))

# What the fuck???!?!? Does ANYTHING exist?

print ("############ Test results ############")

# None of you know how to assert existence. But if you think you do. Please define the exist() function in such a way
# that it passes the unit test below:
def test_if_exists(input):
    return exists(input) == True

print("Testing for the existence of the Universe, Self and God")
for obj in [Universe, I, God, Unicorns]:
    print(test_if_exists(obj))