Today I Learned - Rocky Kev

TIL that Emojis are in the web🥺💡

POSTED ON:

TAGS:

✨✨✨

If a website is using <meta charset="UTF-8">, then you can put emojis in your page.

This is Valid Code:
<p>🍔</p>

This is valid code:

map([🌽, 🐮, 🐔], cook)
=> [🍿, 🍔, 🍳]

filter([🍿, 🍔, 🍳], isVegetarian)
=>  [🍿, 🍳]

reduce([🍿, 🍳], eat)
=> 💩

This is valid code:

h1::before  {
  content: "🍔";
}

Note: I don't know the unicode. I visit the Emojipedia and copy/paste it.

Tweet
reference
Emojipedia


Related TILs

Tagged:

TIL Content sectioning

Content sectioning or landmarks, like sidebar, content, footer. You know, like better names.

TIL php-fpm

PHP runs as a separated service when using PHP-FPM. By using this PHP version as language interpreter, requests are processed through a TCP/IP socket; so that the Nginx web server only handles the HTTP requests and PHP-FPM interprets the PHP code. The fact of having two separate services is key for increasing efficiency.

TIL Considering Device Obsolescence with web development

I'm incredibly guilty of pushing to build for the latest tech. For good reason too - you can write less code, use more native functions, and things are just more likely to work.