Skip to content

Instantly share code, notes, and snippets.

View offpepe's full-sized avatar
💫
sei lá oq sei lá oq, sei oq lá

Alan Albuquerque Ferreira Lopes offpepe

💫
sei lá oq sei lá oq, sei oq lá
View GitHub Profile
@offpepe
offpepe / Export md from devto article.js
Created September 3, 2024 18:43 — forked from seokjeon/Export md from devto article.js
Export md from dev.to article
// Copy the code below, and paste it on address bar where you want to export markdown.
javascript:var url=window.location.href.split("/");url.splice(3,0,"api","articles"),fetch(url.join("/")).then(o=>o.json()).then(o=>console.log(o.body_markdown));

Refactoring Kind's switch with ChatSH

(This is a readable version of my ChatSH session. For the full log, click here.)

Taelin: Hello. We're going to refactor an aspect of the implementation of the Kind language. Are you ready? Start by doing 'ls', then 'cat kind-lang.cabal' to get familiar with the repo.

ChatSH: Certainly! I'm ready to help you refactor an aspect of the Kind language implementation. Let's start by examining the repository structure and the contents of the Cabal file.

ls && echo "---" && cat kind-lang.cabal
@offpepe
offpepe / repository.cs
Created March 31, 2023 13:20 — forked from Guifgr/repository.cs
MultiThread save changes
public void SaveChangesParallel(List<objeto> objetos)
{
var saveList = new List<List<objeto>>();
var count = 0;
while (count < objetos.Count)
{
var partialSaves = objetos.Skip(count).Take(250).ToList();
count += partialSaves.Count;
saveList.Add(partialSaves);
}
@offpepe
offpepe / woovi_job.md
Created March 3, 2023 21:24 — forked from sibelius/woovi_job.md
Woovi Job Description