{ All snippets }

Tweetsnippet is a curated list of tips and tricks from Twitter.

Rias Van der Veken

Rias Van der Veken @Riasvdv

🔥 Don't want Laravel Mix complaining about the manifest during your CI tests and don't want to compile them to save time? Add this to your base TestCase https://t.co/Yuip8vL6cq

Jeffrey Way

Jeffrey Way @jeffrey_way

So happy to finally have arrow functions in PHP. Heads up that, if you use PHPStorm (2019.3), you can opt+enter to auto-switch between traditional closures and arrow functions.

Jeff Madsen

Jeff Madsen @codebyjeff

Today I learned: Vue (and prolly all js frameworks) can pass functions as props. Meaning, if you have a generic child component, you can *inject* things like validation rules. Just like a real language! I'll do a quick code blog explaining more later on. https://t.co/3SqaWXbG8f

Wes Bos

Wes Bos @wesbos

🔥 background-position can take four values which allows you to anchor from a specific corner and then skirt it around from there. https://t.co/fxJyj91Y2n

Adam Wathan

Adam Wathan @adamwathan

🔥 Because Unsplash is powered by imgix under the hood, you can apply lots of image transformations directly in the URL! For example, here I've colorized an image by desaturating it, adding a colored overlay, and multiplying the overlay with the image, all using query params: https://t.co/4GNUB9mt9f

Steve Schoger

Steve Schoger @steveschoger

My favourite visual design trick at the moment: Reduced opacity on overlapping elements. It's subtle but it's a nice touch that looks great on marketing page sections like this testimonial 😍 https://t.co/5l7N0709Fm

Wes Bos

Wes Bos @wesbos

🔥Default function arguments can fallback to a function. This won't be run at definition time, but only once the function is called and no argument is provided. In this case, Math.random() returns a new random number each time https://t.co/xtrn822CEN