News by idiosyncratic@ruby.social
lade... random avatar Follow Folgen

idiosyncratic - Network

Posts Subscribe

And I have compiled this list of MQE and UQE Emoji codepoint sequences: https://character.construction/unqualified-emoji#emoji #regex

https://ruby.social/@idiosyncrat...

And I have compiled this list of MQE and UQE Emoji codepoint sequences: character.construction/unquali

30.10.2024 10:08And I have compiled this list of MQE and UQE Emoji codepoint sequences: https://character.construction/unqualified-emoji#emoji #regex
https://ruby.social/@idiosyncrat...

MQE and UQE (unqualified Emoji sequences) regex matching has landed:...

https://ruby.social/@idiosyncrat...

MQE and UQE (unqualified Emoji sequences) regex matching has landed: github.com/janlelis/unicode-em

30.10.2024 10:06MQE and UQE (unqualified Emoji sequences) regex matching has landed:...
https://ruby.social/@idiosyncrat...

Next up: Supporting Unqualified Emoji ZWJ sequences (Emoji sequences that miss some VS16)

https://ruby.social/@idiosyncrat...

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)
https://ruby.social/@idiosyncrat...

It's available in the unicode-emoji gem as `Unicode::Emoji::REGEX_POSSIBLE`

https://ruby.social/@idiosyncrat...

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`
https://ruby.social/@idiosyncrat...

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....

https://ruby.social/@idiosyncrat...

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}|️⃣?|[󠀠-󠁾]+󠁿)?))*/

(github.com/janlelis/unicode-em)

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....
https://ruby.social/@idiosyncrat...

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....

https://ruby.social/@idiosyncrat...

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...

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....
https://ruby.social/@idiosyncrat...

JavaScript: You might not need… lodash (copy snippets of lodash functions implemented in vanilla js to clipboard)...

https://ruby.social/@idiosyncrat...

JavaScript: You might not need… lodash (copy snippets of lodash functions implemented in vanilla js to clipboard) thescottyjam.github.io/snap.js

16.10.2024 14:30JavaScript: You might not need… lodash (copy snippets of lodash functions implemented in vanilla js to clipboard)...
https://ruby.social/@idiosyncrat...

Building the page, I had realized that detection of Emoji names in https://github.com/janlelis/unicode-sequence_name was pretty strict,...

https://ruby.social/@idiosyncrat...

Building the page, I had realized that detection of Emoji names in github.com/janlelis/unicode-se 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,...
https://ruby.social/@idiosyncrat...

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...

https://ruby.social/@idiosyncrat...

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): 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...
https://ruby.social/@idiosyncrat...

Seems to be a bug: https://bugs.ruby-lang.org/issues/20094

https://ruby.social/@idiosyncrat...

Seems to be a bug: bugs.ruby-lang.org/issues/20094

27.12.2023 09:48Seems to be a bug: https://bugs.ruby-lang.org/issues/20094
https://ruby.social/@idiosyncrat...

Interesting 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...

https://ruby.social/@idiosyncrat...

Interesting 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...
https://ruby.social/@idiosyncrat...

Ruby 3.3 landed on time for the holidays! Most interesting standard gems change is probably the introduction of the Prism Ruby parser...

https://ruby.social/@idiosyncrat...

Ruby 3.3 landed on time for the holidays! Most interesting standard gems change is probably the introduction of the Prism Ruby parser stdgems.org/new-in/3.3/

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...
https://ruby.social/@idiosyncrat...

Ruby IRB tip: How to always get an "off-by-one" result:$ irb --inspect {_1.to_s.succ}irb(main):001:0> 21*2=>...

https://ruby.social/@idiosyncrat...

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

13.1.2023 10:33Ruby IRB tip: How to always get an "off-by-one" result:$ irb --inspect {_1.to_s.succ}irb(main):001:0> 21*2=>...
https://ruby.social/@idiosyncrat...

If you happen to use one of these popular terminal-based Ruby apps:rubocopterminal-tableirbtoolstty-progressbar…you should really run:$...

https://ruby.social/@idiosyncrat...

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!

Changes: github.com/janlelis/unicode-di

4.1.2023 09:28If you happen to use one of these popular terminal-based Ruby apps:rubocopterminal-tableirbtoolstty-progressbar…you should really run:$...
https://ruby.social/@idiosyncrat...

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...

https://ruby.social/@idiosyncrat...

Inspired by the latest improvements to , 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

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...
https://ruby.social/@idiosyncrat...

brb; making my apps compatible with Ruby 3.2 😅 def File.exists?(f)=exist?(f) unless defined? File.exists?#ruby #ruby32

https://ruby.social/@idiosyncrat...

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 #ruby32
https://ruby.social/@idiosyncrat...

Ruby's standard library club has a new member: https://stdgems.org/syntax_suggest/ by @Schneems It is a debugging utility that helps you...

https://ruby.social/@idiosyncrat...

Ruby's standard library club has a new member:

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...
https://ruby.social/@idiosyncrat...

Happy holidays everyone!Ruby has reached level 3.2 bringing us performance improvements and WASM support:...

https://ruby.social/@idiosyncrat...

Happy holidays everyone!

Ruby has reached level 3.2 bringing us performance improvements and WASM support: ruby-lang.org/en/news/2022/12/

Ruby's standard library has also been updated, you can find all version changes here: 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:...
https://ruby.social/@idiosyncrat...

Have you ever combined heredocs with format strings:<<TEMPLATE % [23, 42]First value: %sSecond value: %sTEMPLATEUnusual to have the...

https://ruby.social/@idiosyncrat...

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: idiosyncratic-ruby.com/49-what

23.12.2022 17:08Have you ever combined heredocs with format strings:<<TEMPLATE % [23, 42]First value: %sSecond value: %sTEMPLATEUnusual to have the...
https://ruby.social/@idiosyncrat...

If you use RVM and you have deactivated ri/rdoc generation on install (faster installs), you can regenerate all docs with:rvm docs...

https://ruby.social/@idiosyncrat...

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 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...
https://ruby.social/@idiosyncrat...
Subscribe
To add news/posts to your profile here, you must add a link to a RSS-Feed to your webfinger. One example how you can do this is to join Fediverse City.
         
Webfan Website Badge
Nutzungsbedingungen   Datenschutzerklärung  Impressum
Webfan | @Web pages | Fediverse Members