Skip to content

Instantly share code, notes, and snippets.

🦄
Focusing

Gary Lai imgarylai

🦄
Focusing
Block or report user

Report or block imgarylai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CLion can not find headers after Mac upgraded.md

It can simply be solved by visiting:

Tools > CMake > Reset Changes and Reload Project

My first thought was to check command line tools, which usually caused problems on Mac OS after upgrade; However, the tools was installed correctly.

Fortunately, there were people having same issue like me.

@imgarylai
imgarylai / Edit MJML in JetBrains family IDE.md
Created Nov 23, 2019
Edit MJML in JetBrains family IDE
View Edit MJML in JetBrains family IDE.md

MJML is one of the best frameworks to help developers write a responsive email template. The syntax is easy to learn. The code can be organized easily. The documentation provides many example scenarios for developers to create the template by the need.

Unfortunately, there is no good plugin supporting mjml syntax in JetBrains IDE. However, it is not too bad. It is easy to configure it by yourself to make it easier to write the template in the IDE. I will use Rubymine as an example.

First of all, since mjml is like HTML syntax. We can make the IDE recognize the *.mjml files as HTML code first. Also, since variables will be passed to the template, and we want to use ERB tag in the template. We should make the IDE recognize the MJML file type as RHTML by adding *.mjml to Preferences > Editor > File Types > Recognized File Types > RHTML.

mjml

There is one more step to make the IDE more powerful. We also want the

You can’t perform that action at this time.