Skip to content
View ivnvxd's full-sized avatar
👋
👋

Block or report ivnvxd

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ivnvxd/README.md
defmodule Dev do
  defstruct name: "Andrey",
            role: "Software Engineer",
            speak: %{"ru-RU" => "Russian", "en-US" => "English", "de-DE" => "German"},
            exp: ["Product Management", "Finance", "Entrepreneurship"],
            skills: ["Python", "Go", "Elixir", "Django", "Flask"]
end

defmodule GenerateReadme do
  def generate_readme(%Dev{name: name, role: role, exp: exp, speak: speak, skills: skills}) do
    [
      "# Hello world! :wave: My name is #{name}.",
      "I'm a #{role} with #{format_list(exp)} background.",
      "I speak #{format_list(Map.values(speak))}.\n",
      "## :rocket: My Tech Stack:\n```\n#{Enum.join(skills, ", ")}\n```",
      "Let's connect and build amazing things together! :wink:"
    ]
    |> Enum.join("\n")
  end

  defp format_list([single]), do: single
  defp format_list(list) do
    Enum.split(list, -1)
    |> (fn {rest, [last]} -> Enum.join(rest, ", ") <> ", and " <> last end).()
  end

  def run do
    me = %Dev{}
    IO.puts(generate_readme(me))
  end
end

Pinned Loading

  1. pyquest pyquest Public

    Python everything Cheatsheet and a Journey to the land of Python programming

    Jupyter Notebook 217 21

  2. arc-export arc-export Public

    Export pinned Arc Browser tabs for importing bookmarks into other browsers

    Python 502 40

  3. pcl-fusion pcl-fusion Public

    Fusing multiple point clouds into a unified model

    Python 16 2

  4. hack-interview hack-interview Public

    AI-powered tool for real-time interview question transcription and response generation.

    Python 195 25

  5. tmux-snazzy tmux-snazzy Public

    Elegant tmux theme with bright colors

    15

  6. dotfiles dotfiles Public

    CSS 2 1