• Dannebot@leddit.danmark.partyOPMB
    link
    fedilink
    dansk
    arrow-up
    1
    ·
    10 months ago

    kaspar42 at 2024-01-10 10:17:32+00:00 ID: kh6v1e3


    if ejendom.type == 'andel' and random.randint(1, 100) == 42:
        vurding = 162104e3
        return vurdering
    
    

    Er der et par IT-konsulenter der glemte at fjerne den joke de smed ind i koden under en fredagsbar?

    • Dannebot@leddit.danmark.partyOPMB
      link
      fedilink
      dansk
      arrow-up
      1
      ·
      10 months ago

      moyet at 2024-01-10 13:36:42+00:00 ID: kh7d5gr


      Husk at det er skrevet i clojure:

      (defn find-ejendoms-værdi

      [ejendom]

      (if (and (= :andel (:ejendom-type ejendom)

      (= 42 (rand-int 100))))

      162104e3

      nil))

    • Dannebot@leddit.danmark.partyOPMB
      link
      fedilink
      dansk
      arrow-up
      1
      ·
      10 months ago

      cipherphobia at 2024-01-10 14:27:58+00:00 ID: kh7kdi9


      Jeg tror sgu nærmere det er lavet sådan her:

      
      wtf is this shit?
      =================
      
      \_ = lambda **, \_\_\_=False: \_\_import**('functools').reduce(lambda ***, \_***, \_\_***=***: (\_\_\_ and chr(***)) or (*** \* 10 + \_*\_\_), map(int, str(**))) if not \_*\_ else sum(ord(char) for char in **)
      \_\_ = *(*(42))
      \_\_\_ = *(*(1)) - *(*(0))
      \_\_** = *(*(100))
      \_\_\_\_\_ = *(*(*(reduce(lambda \_*, ***: \_* + (**\_ \* *(***)), range(1, 6)), True))
      \_\_**\_\_ = ''.join(chr(\_\_\_ + *(*) - *(*, True) + ord(char)) for char in \_\_***)
      \_***\_\_\_ = lambda \_\_\_\_\_***: random.choice([*(** // *) for \_ in [lambda \_: \_]]) == \_* // \_\_
      
      \_\_\_\_\_\_ \_\_\_ \_\_\_\_\_\_
      ================================
      
      \_\_\_ |/ /\_\_\_\_\_\_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ \_\_\_ \_\_\_\_\_\_\_ \_\_\_\_\_\_\_\_ \_\_\_ /\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
      ================================================================================================================================================================
      
      \_\_ /|*/ /* \_\_ \_ \_\_ `/ _ \_ __ \_ ___/ __ | /| / / __`/\_ \_\_*/ \_* \_\_ \ \_ \_ \_\_\_/ \_ \
      ====================================================================================================
      
      \_ / / / / /*/ / /*/ // **/ / / /(** ) \_\_ |/ |/ // /*/ /*(\_\_ ) \_ / / / \_*/ / / \_*/
      =========================================================================================
      
      /*/ /*/ \_***/*\**, / \_**//*/ /*//****/ \_\_**/|**/ \**,*/ /****/ /*/ /\_/\***//*/ \_\_\_/
      ===========================================================================================
      
      /\_\_\_\_/
      ==========
      
      if ('type' in dir(ejendom)) and (getattr(ejendom, 'type', None) == \_\_\_***) and \_******(*):
       # Forgive me father for I have sinned
       \_\_**\_\_\_\_\_\_ = [\_\_\_ \* *(*) + \_\_\_\_ + \_\_ // **]
       return float(''.join(map(str, \_\_**\_\_\_\_\_\_)))
      return None
      
    • Dannebot@leddit.danmark.partyOPMB
      link
      fedilink
      dansk
      arrow-up
      1
      ·
      10 months ago

      benignchocolate at 2024-01-10 11:36:33+00:00 ID: kh6zmov


      if ejendom.type == 'andel' and random.randint(1, 100) == 42:
          vurding = 162104e3
          return vurdering