Hacker Newsnew | past | comments | ask | show | jobs | submit | dorianmariecom's commentslogin

that becomes:

    text <b>bold <i>bold-italic</i></b><i> italic</i>

Yeah. After parsing.

https://dorianmarie.com

there is a game of life in the background


Looks sick

Love the background, just don't zoom out too much lol


ad block for android notifications (maybe for ios notifications too?)


you can use chatgpt to reverse the prompt


Not sure if it's a joke, but I don't think LLM is a bijective function.


If you had all the token probabilities it would be bijective. There was a post about this here some time back.


Kind of, LLMs still use randomness when selecting tokens, so the same input can lead to multiple different outputs.


ChatGPT can generate you a sentence that plausibly looks like the prompt


Rather it estimates a potential prompt. I could do the same and it would be no more or less accurate.


rails does this in 8.2


*will do

I just went looking for docs and it seems that 8.2 is not out yet

https://github.com/rails/rails/pull/56350/


codedorian.com a programming language


i tried in ruby up to 1 million (1 billion was taking too long)

    File.write("check.rb", (["if i == 0\n  puts :even"] + (1..1_000_000).map { |i| "elsif i == #{i}\n  puts :#{i % 2 == 0 ? "even" : "odd"}" } + ["end\n"]).join("\n"))
and added at the top

    i = ARGV.first.to_i
but i'm getting SIGILL

    fish: Job 1, 'ruby check.rb 0' terminated by signal SIGILL (Illegal instruction)


Ooh a new bug.


matches my experience with the unicycle


would be nice


a simple one:

    #!/usr/bin/env bash

    _cleanup_and_exit() {
      tput cnorm
      tput sgr0
      clear
      exit 0
    }

    trap _cleanup_and_exit SIGINT

    while true; do
      width=$(tput cols)
      height=$(tput lines)

      tput setab 0
      clear
      tput civis

      x=$((RANDOM % width + 1))
      y=$((RANDOM % height + 1))
      color_code=$((RANDOM % 256))

      printf "\e[${y};${x}H\e[38;5;${color_code}m"

      sleep 1
    done


Just an empty screen here... You're picking random positions on screen, and random colors, but then you don't display ANY text so the info is discarded and cells remain clear.

After the printf, perhaps you want: tput smso; echo -n " "

Then I find moving the second "clear" before the "while" makes it more interesting. Not sure if that's more like what you intended.


yeah hn blocks the square rectangle character


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: