And I have compiled this list of MQE and UQE Emoji codepoint sequences: https://character.construction/unqualified-emoji
30.10.2024 10:08And I have compiled this list of MQE and UQE Emoji codepoint sequences: https://character.construction/unqualified-emoji#emoji #regexMQE and UQE (unqualified Emoji sequences) regex matching has landed: https://github.com/janlelis/unicode-emoji/blob/main/CHANGELOG.md#380
30.10.2024 10:06MQE and UQE (unqualified Emoji sequences) regex matching has landed:...Next up: Supporting Unqualified Emoji ZWJ sequences (Emoji sequences that miss some VS16)
18.10.2024 09:14Next up: Supporting Unqualified Emoji ZWJ sequences (Emoji sequences that miss some VS16)It's available in the unicode-emoji gem as `Unicode::Emoji::REGEX_POSSIBLE`
18.10.2024 09:14It's available in the unicode-emoji gem as `Unicode::Emoji::REGEX_POSSIBLE`I've revisited the Emoji spec to improve the Ruby Emoji regex. At some point they added their own suggestion for a (quite) simple regex. While it matches some undesired things (like simple digits), it's pretty concise:
/(?:\p{RI}{2}|\p{Emoji}(?:\p{EMod}|️⃣?|[-]+)?)(?:(?:\p{RI}{2}|\p{Emoji}(?:\p{EMod}|️⃣?|[-]+)?))*/
#ruby #emoji #unicode #unicode16 #regex
18.10.2024 09:12I've revisited the Emoji spec to improve the Ruby Emoji regex. At some point they added their own suggestion for a (quite) simple regex....Ruby's BigDecimal will be removed as default gem in Ruby 3.4 🫢. To me it has always seemed to be an integral part of the language. It'll remain available as a bundled gem, but still...
https://stdgems.org/bigdecimal/
17.10.2024 09:16Ruby's BigDecimal will be removed as default gem in Ruby 3.4 🫢. To me it has always seemed to be an integral part of the language....JavaScript: You might not need… lodash (copy snippets of lodash functions implemented in vanilla js to clipboard) https://thescottyjam.github.io/snap.js/#!/nolodash
16.10.2024 14:30JavaScript: You might not need… lodash (copy snippets of lodash functions implemented in vanilla js to clipboard)...Building the page, I had realized that detection of Emoji names in https://github.com/janlelis/unicode-sequence_name was pretty strict, since only fully qualified Emoji where considered (= require Emoji sequences to have invisible character "Variation Selector 16" at all proper places). However, real-world Emoji sequences might miss some VS16 codpoints and still display correctly. The gem now also returns the respective sequence name in these cases.
7.10.2024 08:31Building the page, I had realized that detection of Emoji names in https://github.com/janlelis/unicode-sequence_name was pretty strict,...Hello everyone, I have put up this page, let me know if you find this useful…
Name That Character: Show the name of any Unicode codepoint or known codepoint sequence (like Emoji): https://character.construction/name
7.10.2024 08:23Hello everyone, I have put up this page, let me know if you find this useful…Name That Character: Show the name of any Unicode codepoint...Seems to be a bug: https://bugs.ruby-lang.org/issues/20094
27.12.2023 09:48Seems to be a bug: https://bugs.ruby-lang.org/issues/20094Interesting change in Ruby loop semantics. Someone knows if this is this a bug or feature?
Ruby 3.3: (p 1)while false # => 1
Ruby 3.2: (p 1)while false # => nothing
27.12.2023 09:29Interesting change in Ruby loop semantics. Someone knows if this is this a bug or feature?Ruby 3.3: (p 1)while false # => 1Ruby 3.2: (p...Ruby 3.3 landed on time for the holidays! Most interesting standard gems change is probably the introduction of the Prism Ruby parser https://stdgems.org/new-in/3.3/ #ruby
25.12.2023 18:16Ruby 3.3 landed on time for the holidays! Most interesting standard gems change is probably the introduction of the Prism Ruby parser...Ruby IRB tip: How to always get an "off-by-one" result:
$ irb --inspect {_1.to_s.succ}
irb(main):001:0> 21*2
=> 43
irb(main):002:0> "masotodon"
=> masotodoo
If you happen to use one of these popular terminal-based Ruby apps:
rubocop
terminal-table
irbtools
tty-progressbar
…you should really run:
$ bundle update unicode-display_width
It now processes ASCII characters much faster (thanks Dima Fatko for the idea) so things are now 100x faster *at least*. Should definitely be noticeable!
4.1.2023 09:28If you happen to use one of these popular terminal-based Ruby apps:rubocopterminal-tableirbtoolstty-progressbar…you should really run:$...Inspired by the latest improvements to #IRB, I have released Irbtools 4.0. It is the first version to include custom commands, so some of Irbtoools' methods now support "ri" syntax:
code Array#reverse
This will directly show the reverse method's source code in the REPL.
Also new: Using dollar-space as a prefix allows you to call the system shell from your IRB session! So this just works:
$ top
https://github.com/janlelis/irbtools
29.12.2022 20:44Inspired by the latest improvements to #IRB, I have released Irbtools 4.0. It is the first version to include custom commands, so some of...brb; making my apps compatible with Ruby 3.2 😅
def File.exists?(f)=exist?(f) unless defined? File.exists?
27.12.2022 14:38brb; making my apps compatible with Ruby 3.2 😅 def File.exists?(f)=exist?(f) unless defined? File.exists?#ruby #ruby32Ruby's standard library club has a new member:
https://stdgems.org/syntax_suggest/ by @Schneems
It is a debugging utility that helps you to find missing `end` keywords or closing parenthesises.
25.12.2022 09:09Ruby's standard library club has a new member: https://stdgems.org/syntax_suggest/ by @Schneems It is a debugging utility that helps you...Happy holidays everyone!
Ruby has reached level 3.2 bringing us performance improvements and WASM support: https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
Ruby's standard library has also been updated, you can find all version changes here: https://stdgems.org/3.2.0/
25.12.2022 09:01Happy holidays everyone!Ruby has reached level 3.2 bringing us performance improvements and WASM support:...Have you ever combined heredocs with format strings:
<<TEMPLATE % [23, 42]
First value: %s
Second value: %s
TEMPLATE
Unusual to have the substitutions in the beginning, but I kind of like it 🤔
Format string docs: https://idiosyncratic-ruby.com/49-what-the-format.html
23.12.2022 17:08Have you ever combined heredocs with format strings:<<TEMPLATE % [23, 42]First value: %sSecond value: %sTEMPLATEUnusual to have the...If you use RVM and you have deactivated ri/rdoc generation on install (faster installs), you can regenerate all docs with:
rvm docs generate
Suddenly the `show_doc` command in #IRB works!
22.12.2022 10:40If you use RVM and you have deactivated ri/rdoc generation on install (faster installs), you can regenerate all docs with:rvm docs...