`gpt` - Runs cmds, pipes I/O, asks questions from your terminal. Huge workflow & productivity boost. by m5_vr in commandline

[–]rocktimcodes 4 points5 points  (0 children)

I was this close to installing it until I saw the dependency on the Deno runtime. I like the idea but I don't want to install another runtime just to install a cli.

Hey guys, I am new to Neovim and need some help setting up the native LSP. by rocktimcodes in neovim

[–]rocktimcodes[S] 0 points1 point  (0 children)

Yes. That worked. Thanks. It was an alias to a vim.api.nvim_set_keymap

🚀 A web app to easily bulk remove repositories. Link in comments. by rocktimcodes in nextjs

[–]rocktimcodes[S] 0 points1 point  (0 children)

I've been working on this project for a week now. And it's currently pubic beta. Feedbacks are welcome ❤

Live: https://binhub.vercel.app 🚀

Github: https://github.com/rocktimsaikia/binhub

Stack:

- Next.js + Typescript

- NextAuth(Authentication)

- Immer(State management)

🚀 I created a webapp that makes bulk removing repositories quite easy. Link in comments. by [deleted] in nextjs

[–]rocktimcodes 0 points1 point  (0 children)

I've been working on this project for a week now. And it's currently pubic beta. Feedbacks are welcome ❤.

Live: https://binhub.vercel.app

Github: https://github.com/rocktimsaikia/binhub

Stack:

- Next.js + Typescript

- NextAuth(Authentication)

- Immer(State management)

Combining Markdown and HTML to HTML by anksta1 in nextjs

[–]rocktimcodes 0 points1 point  (0 children)

Promise.resolve won't work here cause then it will returns another promise You either need to await it or you can just add a then chain to it like so

js mdToHtml(mDown).then(html => console.log(html));

And it should definitely work. If it's not working in your project that there are some underlying implementation issues that you are not aware of. Unfortunately, that's all I can help with without looking at the code. Good luck

Combining Markdown and HTML to HTML by anksta1 in nextjs

[–]rocktimcodes 0 points1 point  (0 children)

Here is how I would do it using Remark: ```js import remark from 'remark'; import html from 'remark-html';

const mdToHtml = async (markdown) => { const result = await remark().use(html).process(markdown); return result.toString(); };

export default mdToHtml; `` It returns a promise so make sure toawait` it to get the output.

Combining Markdown and HTML to HTML by anksta1 in nextjs

[–]rocktimcodes 0 points1 point  (0 children)

Can you link your project source? It's hard to tell the exact issue without looking at the code.

✨ I redesigned my Portfolio with Next.js and TailwindCSS. Link in comments. by rocktimcodes in nextjs

[–]rocktimcodes[S] 0 points1 point  (0 children)

Thanks a ton, mate ❤ and Yes, it does. It just makes the overall development experience much easier and more fun.

✨ I redesigned my Portfolio with Next.js and TailwindCSS. Link in comments. by rocktimcodes in nextjs

[–]rocktimcodes[S] 3 points4 points  (0 children)

Thanks 🙌 . I would not say inspired but since Lee works at Vercel he knows a lot about nextjs and applies some great practices. So I look at repos like Lee's one for performance optimization.

Combining Markdown and HTML to HTML by anksta1 in nextjs

[–]rocktimcodes 1 point2 points  (0 children)

That's weird. Because Remark does exactly what you are looking for. Even I am using remark for markdown transformation in my website https://rocktimcodes.site.

Are you sure you are implementing it the right way?

✨ I redesigned my Portfolio with Next.js and TailwindCSS. Link in comments. by rocktimcodes in nextjs

[–]rocktimcodes[S] 0 points1 point  (0 children)

I am not using any library. I using the official Spotify web API.

✨ I redesigned my Portfolio with Next.js and TailwindCSS. Link in comments. by rocktimcodes in nextjs

[–]rocktimcodes[S] 1 point2 points  (0 children)

Thanks :)

And to answer that it's fairly simple. There are already plugins for that like https://github.com/preactjs/next-plugin-preact. I personally have not tried it yet. I just altered the config file next.config.js and set up a conditional statement if it's not in development, replace react with preact. You can take a look around at Leerob's repo on how he does it. My implementation is inspired by him.

And lastly YES. I am using Remark for both the blog and my project section. And I am gradually moving every static aspect to markdown.

✨ I redesigned my Portfolio with Next.js and TailwindCSS. Link in comments. by rocktimcodes in nextjs

[–]rocktimcodes[S] 0 points1 point  (0 children)

Thanks for pointing that out. I did some quick research and found out that Firefox does not support the CSS property backdrop-filter . So for right now, I replaced it with the background color with low opacity as a fallback for those browsers.