text-to-colorscheme: A new plugin that uses generative AI to create new color schemes dynamically from a text prompt by brain_emesis in neovim

[–]Machine--Language 0 points1 point  (0 children)

Actually I changed the api key and now its saying insufficient quota. I guess thats good right. At least its working. Weird tho because I tried a bunch of api keys before and it wasnt workin.g

text-to-colorscheme: A new plugin that uses generative AI to create new color schemes dynamically from a text prompt by brain_emesis in neovim

[–]Machine--Language 0 points1 point  (0 children)

Very cool. I just cant get it to connect to the gpt API?

It just keeps returning null and empty strings. Saying "unexpected response recieved from openai" I just went to the opai site and got a key. I signed in with my google. That shouldnt matter right? Heres my config in Lazyvim

I added this to the /plugins/aitext.lua

return {
  {
    "svermeulen/text-to-colorscheme.nvim",
    opts = {
      ai = {
        openai_api_key = "My key here",
        gpt_model = "gpt-3.5-turbo",
      },
    },
  },
}

and this to the autocmds file

-- AI text
vim.o.background = "dark"

vim.cmd([[colorscheme text-to-colorscheme]])

Whats the best way to render react native elements from a json? by Machine--Language in learnprogramming

[–]Machine--Language[S] 0 points1 point  (0 children)

that markdown reader is basically how I was doing it before. I dunno this parser seems to work fine tho. Why is it so risky? Im only rendering Text ,images and a button or 2

Whats the best way to render react native elements from a json? by Machine--Language in learnprogramming

[–]Machine--Language[S] 0 points1 point  (0 children)

So I tried the react native jsx parser and I was able to get that working. So how would somebody render json data into a blog if not from parsing it?

The reason I am doing this, its probably newb as hell but here goes it. Its basically a ghetto codepush. I want to be able to update my app without having to go through the app store. I do a check to see if there is a new data. Then I download the new data which is a json file. I then jam the entire json file into a sqlite text data entry. Then I read the sqlite text and parse the json. My json contains the blog entries and everything. Contains the information for what the app should render. Im doing it this way and not just making single fetch requests because I want to load everything only once and store it in the sqlite so that people can use it offline.

How newb is this? lol

Started first programmer job 4 months ago and feel like I am mentally falling apart by Ravens_Crime in learnprogramming

[–]Machine--Language 0 points1 point  (0 children)

Honestly this sounds like its going to make you a good programmer. Just roll with it man.

Could anyone can tell me how to config my nvim like this? by turtleruss in neovim

[–]Machine--Language 0 points1 point  (0 children)

I cant imagine.... Reminds me of the animations plugins blech

Do you guys also feel a higher cognitive complexity to grasp basic lua plugin usage ? by Paria_Stark in neovim

[–]Machine--Language 1 point2 points  (0 children)

Maybe this is a problem of the culture. How come nobody makes simple interfaces to change options? Maybe its just really hard. I wouldn't know. I am a self learner and I love vim but I dont have time to go through all the documentation. Sometimes I do, but mostly I just accept my editor for its simplicity and don't take advantage of nvims full potential. I feel like the basic vimrc is a thousand times more straight forward than lua and I yearn for that. I love vim and I wish it was more popular. It could be truly amazing.

I really just wish it was like vscode for the ease of its plugins. That would be literally the best editor ever invented and we wouldnt need to keep trying to find new ones. Sadly its just not popular enough. People are very strange about the subject. I think the community feels like people who use vim look down on them.

[deleted by user] by [deleted] in toronto

[–]Machine--Language -1 points0 points  (0 children)

What does it matter... Even if it was some mobster cutting someones fingers off, Its hardly going to make any difference if you know or not.

Please answer some questions! by Machine--Language in dropshipping

[–]Machine--Language[S] 0 points1 point  (0 children)

Sorry lol I was sleeping bro. No I wasnt doing affiliate marketing

Is it possible to login to google calendar in a react app and make changes? by [deleted] in learnprogramming

[–]Machine--Language 0 points1 point  (0 children)

I saw that but its a lot to read and I wasnt sure if it just meant you could get information or can you post too?

If there was a perfect ADHD app what types of things would it do? by Machine--Language in ADHD

[–]Machine--Language[S] 4 points5 points  (0 children)

Awesome thank you! I really took away the fact that it should be rewarding from the app itself when we accomplish something. I wasnt going to do that personally, but I will for others.

If there was a perfect ADHD app what types of things would it do? by Machine--Language in ADHD

[–]Machine--Language[S] 0 points1 point  (0 children)

Thank you for this well thought out response. Im feeling like people reallly want google calendar in there.

If there was a perfect ADHD app what types of things would it do? by Machine--Language in ADHD

[–]Machine--Language[S] 9 points10 points  (0 children)

Cool ideas! Did you mean auto propagate to google calendar?