• 0 Posts
  • 6 Comments
Joined 1 year ago
cake
Cake day: July 17th, 2023

help-circle
  • Create a python file that only contains this function

    def increase_by_one(i):
        # this increments i
        f=open(__file__).read()
        st=f[28:-92][0]
        return i+f.count(st)
    

    Then you can import this function and it will raise an index error if the comment is not there, coming close to the most literal way

    Any code which does not contain the comment “this increments i:” will produce a compile error and fail to run.

    could be interpreted in python




  • I have been running Linux for some time now, still had a Windows partition for gaming. Then I switched the motherboard and windows decided I no longer had a key for it… I stopped playing most of the windows exclusive games. Since last week I can’t even boot anymore, something about missing drivers. Spent a day trying to fix it. Today I decided fuck it and I’m just leaving it behind! It makes no sense wasting so much energy on a vastly inferior OS that actively tries to fight me.