Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for Ray‭

Type On... Excerpt Status Date
Edit Post #296028 Post edited:
5 months ago
Edit Post #296028 Initial revision 5 months ago
Answer A: The 50 substrings that validate any string of Roman numerals
vim, 212 bytes ```vim A:"xddO11@aj044j116jdj31@ar2j242jdj314jd3j$51@ar4j42d3j512jdG:%s/\(\d\d\)/@ar\1@bj/g "dDqaA 0qqbYp$qxkDqc@a6@bjq(7@c(@doI X C M3kY3P:%!tr 0-6 IVXLCDM :%s/ //g :%s/./:s\/.\\(\0\\).\/\\1\/e ggd)"xp@"df:kdd ``` `` is 0x16. `` is 0x01. `` is 0x1b. Annotated ...
(more)
5 months ago
Edit Post #295724 Initial revision 6 months ago
Answer A: Single letter HTML
sed, 16 bytes /[abipq]/{c q};d Prints a newline for true and an empty string for false. Annotated ``` /[abipq]/{ # run grouped commands for lines matching [abipq] c # change current buffer with remainder of this line (i.e. \n) q # quit }; ...
(more)
6 months ago
Edit Post #295712 Initial revision 6 months ago
Answer A: Lone ​​​​​​ones
vim, 42 bytes Better approach than my previous attempt: we can do this in parallel by having our macro only increment the counter and then replace only the Lone Ones with calls to it. ```vim :s/111//g :s/0//g :s/1/@a/g O0qaqjdd@" ``` `` is 0x1b. `` is 0x01. `` is 0x18. Ungolfed ...
(more)
6 months ago
Edit Post #295690 Post edited:
6 months ago
Edit Post #295690 Initial revision 6 months ago
Answer A: Lone ​​​​​​ones
vim, 77 bytes Input is a binary string. ```vim :s/^/0 0/ yyP :s/./@a/g qa:g/010$/s/010$//e|0:norm :s/1110$//e qGdd@"WD ``` `` is 0x16. `` is 0x01 Ungolfed: ```vim ; Add a leading zero to make the regexes easier, ; and put "0 " at the front, to act as the count. :s/^/0 0/ ...
(more)
6 months ago