fabi.s

Generation

code to explanationMon, 10 Jul 2023

const techFromSlug = context.query.tecchunks = [] while len(text) > 500: last_period_index = text[:500].rfind('.') if last_period_index == -1: last_period_index = 500 chunks.append(text[:last_period_index]) text = text[last_period_index+1:] chunks.append(text)h.slice(-1)[0];

keeps the last object in the array `chunks` ### if you want to add a new article - create a folder with the name of the article in the directory `techarticles` - add an index.mdx with the content of the article ### if you want to add a new tutorial - create a folder with the name of the tutorial in the directory `techtutorials` - add an index.mdx with the content of the tutorial ## contact You have a question, would like to comment on something or just want to say hi? Visit [my twitter](https://twitter.com/paul_lilljedahl)

Questions about programming?Chat with your personal AI assistant