An entry with just some code
Stefan Marx | 1 minute
some code, some code!
Now I want to see, how code looks like, if I pplace it in the org file. Here we go:
(use-package all-the-icons
:if (display-graphic-p)
:commands all-the-icons-install-fonts
:init
(unless (find-font (font-spec :name "all-the-icons"))
(all-the-icons-install-fonts t)))
(use-package hydra)
(defhydra hydra-text-scale (:timeout 4)
"scale text"
("j" text-scale-increase "in")
("k" text-scale-decrease "out")
("f" nil "finished" :exit t))
And we will also try some python code, of course:
import random
secret_number = random.randint(1, 100)
while True:
guess = int(input("Guess the number between 1 and 100: "))
if guess == secret_number:
print("Congratulations! You guessed the number!")
break
elif guess < secret_number:
print("Too low! Try again.")
else:
print("Too high! Try again.")
I am curious, lets go!