Avatar

miguel piedrafita

@m1guelpf

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

3 months ago

ย โ€ขย 

View on Twitter

In 2022: โ—† Moved to Lisbon ๐Ÿ‡ต๐Ÿ‡น โ—† Joined @worldcoin ๐Ÿชฉ โ—† Launched 65 projects ๐Ÿš€ โ—† Spoke at 6 conferences ๐ŸŽค โ—† Traveled to 11 countries โœˆ๏ธ โ—† Taught myself Solidity & Rust ๐Ÿฆ€ โ—† Made frens all around the world ๐ŸŒ Insane year, next one will be even better. Let's go 2023!

4 months ago

ย โ€ขย 

View on Twitter

Making Stable Diffusion Safer for Third Parties

โœจ So you want to add AI image generation to your website? Rarely, Stable Diffusion will generate NSFW images from regular prompts. The default filter catches it, but your users getting a black image isn't much better. ๐Ÿ˜… How can we get around this? With a new model ๐Ÿ‘‡

The default filter Stable Diffusion comes with is pretty good, and usually manages to catch these "exceptions". (it's easy to manually bypass and only filters sexual content, but that's for another thread ๐Ÿ‘€) When it triggers, SD will replace your image with a black square. โฌ›๏ธ

Continue reading

4 months ago

ย โ€ขย 

View on Twitter

Generating Better AI Images By Default

โœจ Defaults are incredibly important for image models. Most users won't spent hours tweaking prompts, they'll type the first thing that comes to their minds and run with the result. Fortunately, it's pretty easy to optimize for that, and generate better images by default. ๐Ÿคฏ

Continue reading

5 months 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

6 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

7 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

A year 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

A year 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

A year 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

A year 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