Twitter | Search | |
Ruie Dela Peña Mar 31
Replying to @coderitual
What's the name of this color scheme.. looks sick! By the way awesome share!
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @ruiehq
Lucy :)
Reply Retweet Like
Serkan Sipahi Mar 31
Replying to @coderitual
when working with observables (rxjs) then is this very useful shortform: filter(Boolean). Thanks for the hint.
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @Bitcollage
You're welcome
Reply Retweet Like
Andy Bell Mar 31
Replying to @coderitual @mxbck
It’d be super handy if these were in a gist or something so you could point those with visual impairments there because the code in an image isn’t super useful for assistive technology. Some super handy one-liners there, though. Thanks for sharing!
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @andybelldesign @mxbck
Agree...
Reply Retweet Like
Emilio Martinez Mar 31
Replying to @coderitual
How does that last one work? 🤔
Reply Retweet Like
MasterBaguette Mar 31
Replying to @coderitual
What color theme is that, please ?
Reply Retweet Like
renyopd Mar 31
Replying to @coderitual
console.table is life changing
Reply Retweet Like
Mathias Bynens Mar 31
Replying to @coderitual @Vjeux
Why are you mixing `let` and `const`?
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @mathias @Vjeux
Ah you're right, sorry. Should be const.
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @dhaakon
Definitely should be on this list
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @popcornpool
1/2 Fractional part is truncated on bitwise operation. Bitwise operators (except unsigned shift >>>) works on 32 bit signed integer so 64 bit float is converted.
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @popcornpool
2/2 Then we apply reverse operation (second~) to already truncated number. The same result is with |0. It might be useful but I wouldn't recommend to use them in business oriended code.
Reply Retweet Like
Richard Beddington Mar 31
Worth noting that this won’t work properly for negative numbers!
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @RichieAHB @popcornpool
It works, but it's truncate rather than floor.
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @davinaz49
lucy
Reply Retweet Like
Richard Beddington Mar 31
Yup, that’s what I meant - it turns into ceil below 0
Reply Retweet Like
✨ Mike Skowronek Mar 31
Replying to @RichieAHB @popcornpool
Yeah, I should have been more precise in this the comment. Thanks!
Reply Retweet Like