Avatar

Miguel Piedrafita

@m1guelpf

20. Serial builder, purple-haired developer @worldcoin, core @ConstitutionDAO. I tweet about ideas, code, ML & more. he/him

A month ago

ย โ€ขย 

View on Twitter

Quickly Recreating Magic Login from Scratch

โœจ I started a new app recently, and while I've used Laravel in the past for "heavy" apps, decided to go 100% with Next.js this time, as a challenge. As I'm building all the scaffolding from the app, I've borrowed some ideas from Laravel that JS devs might find interesting... ๐Ÿ‘‡

While I mostly use @laravelphp for the Queue these days (no other solution comes close, especially coupled with Vapor), you usually don't think about the work it does for you: ๐Ÿ“จ Crafting & sending mail ๐Ÿ” Authentication & authorization With @nextjs, you start from scratch. ๐Ÿ˜…

Continue reading

3 months ago

ย โ€ขย 

View on Twitter

How I went viral by building an AI Twitter bot

โœจ Yesterday, I made a tweet that converted all the replies into images, using Stable Diffusion. It blew up, with +2k people coming together to generate all kinds of art, memes, and play around with ML. Here's how I built it, how much it cost me, and how you can try it out! ๐Ÿ‘‡

I'm a big fan of @midjourney's (another AI image tool) approach to launching: They made a Discord, where everyone can generate images in public. If you see someone making something cool, you can see their prompt, tweak it, and put your own spin into it. It makes AI multiplayer!

Continue reading

3 months ago

ย โ€ขย 

View on Twitter

Adding a live map to my website

โœจ As part of my quest to make my website more personal, I've now added a map showing where I am. The cool thing? It dynamically updates the location every day when I wake up, generates an Apple Maps screenshot, and a low-res placeholder. ๐Ÿ˜ฎ Here's how I built it ๐Ÿ‘‡

Continue reading

7 months ago

ย โ€ขย 

View on Twitter

How to "Discover" Good Tweets

quick alpha for good twitter takes: talk to lots of people identify the ideas/examples you keep bringing up in every conversation tweet those ideas to keep track of them over time, refine and rehash those ideas over more tweets

earliest example of this I can think of is my experience with my school trying to "update" itself. I realised I was always bringing up the same example when talking about crypto-native apps, so I made it into a thread. https://twitter.com/m1guelpf/status/1455384103922978819

Continue reading

7 months ago

ย โ€ขย 

View on Twitter

How to Learn Anything

๐Ÿ“ How to learn anything Get started with a project, with a stack you're familiar with (but a new piece you want to master). Then, debug your way into knowledge.

Continue reading

8 months ago

ย โ€ขย 

View on Twitter

๐ŸŽ™The last episode of @PJVogt's new crypto podcast told the story of @ConstitutionDAO. As an addendum, I talked about my experience there, and tried to explain why I'm so excited for the web3 space. also, purple flowers ๐Ÿ’ https://pjvogt.substack.com/p/miguel

9 months ago

ย โ€ขย 

View on Twitter

An open-source transaction intelligence repository

โœจ Wallet history is notoriously hard to "explain" to users. At best, you get a bunch of swaps, but every other tx is a "contract interaction". I've spent the past week working on a solution (and recreating the iOS lockscreen on web to showcase it ๐Ÿคช). https://wallet.m1guelpf.me

๐Ÿ”Ž Today, your wallet's history is a big mess of numbers for anyone non-technical. Even if websites build UIs for submitting transactions, all context is lost once they leave the page, and they'll have to face Etherscan if they ever want to remember what that was again. ๐Ÿคท

Continue reading

9 months ago

ย โ€ขย 

View on Twitter

Optimizing RPC calls

๐Ÿ›  Had to optimise some RPC calls today, and noticed that ethers.js calls eth_blockNumber every time you call getTransaction(). If you don't care about network confirmations and want to save on your Infura bill, you can use this helper instead ๐Ÿ˜

Continue reading

9 months ago

ย โ€ขย 

View on Twitter

gas is to today's blockchain what bandwidth was to 1990's interney

We spend too much time explaining the specifics of NFTs to anti-crypto people. We should be explaining how the current systems work instead, in short & accesible formats. Otherwise, they're just hating Capitalism through us, without understanding how we make things better.