• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
junthecoder Avatar
Name:junthecoder
Clan:Unknown
Member Since:Oct 2016
Last Seen:May 2025
Profiles:
    Following:5
    Followers:11
    Allies:4
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations
    • Replies
    • Authored (16)
    • Needs Resolution
    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      Try adding the following line to the beginning of the function. Then you can determine what input is causing the error.

      print(color)
      
    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      Your code seems alright. Try it with a different browser.

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      Make sure the function returns an object, not a string.

    • Custom User Avatar
      • junthecoder
      • commented on "Functional streams" kata
      • 8 years ago

      Awesome kata! I had a blast with Haskell. Thanks.

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      Without your code I can't figure out what's wrong.

      The keys of PRESET_COLORS are color names in lower-case string. Make sure you use lower-case string as a key.

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      The PRESET_COLORS variable is predefined, so you can get the correspondent hex string by using a lower-cased color name as a key.

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      Please read the 'Input' section in the description. You have to use the PRESET_COLORS map (aka dictionary). e.g. PRESET_COLORS['LimeGreen']

    • Custom User Avatar
      • junthecoder
      • resolved a suggestion on "Parse HTML/CSS Colors" kata
      • 8 years ago

      I agree with you. Now the tests accept colors regardless of the order of the keys. Thank you for the suggestion :)

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      String#downcase! is a destructive method, meaning it modifies the string itself but it doesn't necessarily returns the modified string.

      You should run irb and try out the method.

      You may also want to check the non-destructive version String#downcase (without the '!' suffix).

    • Custom User Avatar
      • junthecoder
      • commented on "Five Fundamental Monads" kata
      • 8 years ago

      Thank you for the fun challenging kata! I learned a lot in the process :)

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      Thanks! I'm glad you enjoyed it :)

    • Custom User Avatar
      • junthecoder
      • resolved a suggestion on "Parse HTML/CSS Colors" kata
      • 8 years ago

      @zebulan

      Thank you for the suggestion! I didn't know the way the available versions are selected.

      Now Python 2 and 3 are both supported :)

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      That was a bug and it's fixed now. Thank you for reporting!

    • Custom User Avatar
      • junthecoder
      • commented on "Parse HTML/CSS Colors" kata
      • 8 years ago

      This is the first kata I authored. I would appreciate any advice or suggestions!

    • Custom User Avatar
      • junthecoder
      • commented on "Parsing musical notes into MIDI" javascript solution
      • 8 years ago

      beautiful!

    • Loading more items...
    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...