Skip to content
View mehdi-farsi's full-sized avatar

Block or report mehdi-farsi

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
mehdi-farsi/README.md

Hey, I’m Mehdi 👋

Just like you, I have a deep passion for Ruby and Rails. Over the years, I’ve explored the language inside and out, and it would be my honor to share everything I’ve learned with you.

If you enjoy discovering interesting Ruby quirks, best practices, and deep insights, you might like RubyCademy—a place where I share knowledge to help fellow developers grow.

I also post daily Ruby insights on x.com/RubyCademy. Would love to have you there!

Thanks for stopping by, and happy coding! 🙏

Pinned Loading

  1. make_it_snow.rb make_it_snow.rb
    1
    trap("SIGINT") { exit! }
    2
    
                  
    3
    total_width = `stty size`.scan(/\d+/)[1].to_i # terminal width
    4
    
                  
    5
    snowflakes = {}
  2. Count the lines of code of a rails p... Count the lines of code of a rails project - in pure Ruby
    1
    # Workflow:
    2
    #
    3
    # 1- if the path points to a directory
    4
    #   1.1- if the directory isn't in the exclusion list then: count LOC
    5
    #   1.2- else: prune directory
  3. activerecord-search activerecord-search Public

    A lightweight search engine using ActiveRecord

    Ruby 7 1

  4. wcr wcr Public

    A wrapper on wc command. Permit to execute `wc` recursively with a more flexible argument parser.

    Ruby 6