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

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

  1. pyquest pyquest Public

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

    Jupyter Notebook 196 16

  2. arc-export arc-export Public

    Export pinned Arc Browser tabs for importing bookmarks into other browsers

    Python 146 15

  3. pcl-fusion pcl-fusion Public

    Fusing multiple point clouds into a unified model

    Python 9 2

  4. tmux-snazzy tmux-snazzy Public

    Elegant tmux theme with bright colors

    10

  5. go-micro go-micro Public

    A Go-based microservices demo with Docker Swarm and Kubernetes deployment

    Go 1

  6. dotfiles dotfiles Public

    Shell 1 1