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 Shaggy‭

Type On... Excerpt Status Date
Edit Post #282970 Post edited:
almost 3 years ago
Suggested Edit Post #282967 Suggested edit:

(more)
helpful almost 3 years ago
Suggested Edit Post #282970 Suggested edit:

(more)
helpful almost 3 years ago
Suggested Edit Post #282979 Suggested edit:

(more)
helpful almost 3 years ago
Edit Post #283080 Initial revision almost 3 years ago
Answer A: Guess the language! (Robbers' Thread)
Cracks Quintec‭'s answer: Canvas My first clue was the `echp`; if the language used `echo` then why wouldn't it error on that? The second clue was that the last line contained the exact output we needed so I suspect that we're looking for a golfing language that ignores all but the last line of a ...
(more)
almost 3 years ago
Edit Post #283078 Initial revision almost 3 years ago
Answer A: Guess the language! (Robbers' Thread)
Cracks Kevin M. Mansour‭'s answer: Erlang Searched for languages that use `fwrite`, no joy. Searched for `io:fwrite`, got it instantly ``` main([])-> io:fwrite("Cops and Robbers"). ``` Try it online!
(more)
almost 3 years ago
Edit Post #283076 Initial revision almost 3 years ago
Answer A: Guess the language! (Robbers' Thread)
Cracks Mark Girrafe's answer: Japt No way I wasn't getting this one! Even if the intended solution was Pyth. "Cops and Robbers Test it
(more)
almost 3 years ago
Comment Post #283036 `11>>1 = 5` and, as outputting an array of lines is permitted, you can remove the `mkString "\n"`.
(more)
almost 3 years ago
Edit Post #283074 Initial revision almost 3 years ago
Answer A: Gamer Meme Creator
Japt, 19 bytes Takes the artwork as an array of lines and the string as the second input. If we can require that the artwork be right padded with spaces on each line so they're all the same length then the first 2 bytes can be removed but I suspect that them being different lengths is integral to ...
(more)
almost 3 years ago
Comment Post #283011 Can we require that all lines in the input art be right padded with spaces so as to all be equal length?
(more)
almost 3 years ago
Edit Post #282986 Initial revision almost 3 years ago
Answer A: "Hello, World!"
Rockstar, 19 bytes say "Hello, World!" Try it here (Code will need to be pasted in)
(more)
almost 3 years ago
Comment Post #282982 I was hoping someone _un_familiar with me from SE would get this one - should have known it'd be you, though! :p
(more)
almost 3 years ago
Edit Post #282982 Post edited:
almost 3 years ago
Edit Post #282982 Initial revision almost 3 years ago
Answer A: Guess the language! (Cops' Thread)
Japt, cracked by Razetime, 44 bytes ((Cops)&(Robbers))`¬ps „d žbÞ`¸ËhDÎmEgviuø Test it `...`¸ËhDÎmEgviuø `...` :Compressed string "cops and robbers" ¸ :Split on spaces Ë :Map each D at index E h ...
(more)
almost 3 years ago
Comment Post #282965 You need to create a separate challenge for robbers to post their solutions to. See https://codegolf.codidact.com/posts/279754
(more)
almost 3 years ago
Comment Post #282967 [Try it online!](https://tio.run/##S07MK0ss/v9fPykzTz8psTiDy04hNTkjX0HJOb@gWCExL0UhKD8pKbWoWMlaQTkktbgkMy9dR6EEwlAwVDBSMOYKTk3PTc0rSSzJzM9TcEsszSmBmFKA3RSP0gx7LnSJ//8B) You weren't fooling me with those red herrings! :p
(more)
almost 3 years ago
Comment Post #282970 [Try it online!](https://tio.run/##Sy3KScxL100tTi7KLCj5/58rNzEzTyM6VlPXjosrM98qrbwosyRVQ8k5v6BYITEvRSEoPykptahYSVPv/38A)
(more)
almost 3 years ago
Comment Post #282979 [Test it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=IkNvcHMgYW5kIFJvYmJlcnM) No way _I_ wasn't getting this one!
(more)
almost 3 years ago
Comment Post #282903 [A few more quick savings for you](https://tio.run/##Dc2xDoIwEIDhV2mY7qKAoDERLSSyuDs4EIYGDsRUjhzVQeOzV@Y/X/6HeZu5kWFy4cgteUtOCTullWedi845EpqsaQjiyoSfOu6H9VKuToaxjzrhZ3k3Ui4WgE/fX3FIsiTdYg6sz6@uIwHGalOvBAvOOEz3iL7hcWZLkeUelhsEF7KW1Y3FtgHCDvHo/w).
(more)
almost 3 years ago
Comment Post #282905 [60 bytes](https://tio.run/##FcfBDoIwDADQX/GCa7NAwiA7GDcTT5z5g6UMo6mUFJXPn@Hd3iv90kb6XD/1IlMuYygSooZ4/85zVhBs3mkFCpGqzl2dP1P0/Q2OWcXKeUv1kQuhNaaQLJtwblgeMIIZMrOcdlGeDELbIZY/)
(more)
almost 3 years ago
Edit Post #282619 Post edited:
almost 3 years ago
Edit Post #282619 Post edited:
almost 3 years ago
Edit Post #282264 Post edited:
almost 3 years ago
Edit Post #282595 Post edited:
almost 3 years ago
Edit Post #282618 Post edited:
almost 3 years ago
Edit Post #282618 Post edited:
almost 3 years ago
Comment Post #280828 Could do with some test cases
(more)
almost 3 years ago
Edit Post #282619 Post edited:
almost 3 years ago
Edit Post #282505 Post edited:
almost 3 years ago
Edit Post #282619 Initial revision almost 3 years ago
Answer A: The Pell Numbers
Japt, 11 9 bytes Outputs the first `n` terms. Change the `h` to `g` to get the `n`th 0-indexed term. ÈÑ+ZÔÅÎ}h Try it ÈÑ+ZÔÅÎ}h :Implicit input of integer U È :Function taking an integer X and an array Z as arguments Ñ : X2 + ...
(more)
almost 3 years ago
Edit Post #282618 Post edited:
almost 3 years ago
Edit Post #282618 Initial revision almost 3 years ago
Answer A: The Pell Numbers
JavaScript, 26 bytes Outputs the `n`th term, 0-indexed. f=n=>n f=n=>--n&&f(n)+[,(g=n=>n<2?n:g(--n)2+g(--n))(n)] Try it online!
(more)
almost 3 years ago
Comment Post #280753 Ta. Wasn't showing up when searching on me phone last night.
(more)
almost 3 years ago
Comment Post #280753 Did you forget to post this one? Can't find it on Main.
(more)
almost 3 years ago
Edit Post #282595 Post edited:
almost 3 years ago
Edit Post #282595 Initial revision almost 3 years ago
Answer A: Add two negabinary integers
Japt, 8 bytes Input as an array of negabinary digit arrays, output as a negabinary digit array. xì2n)ì2n Try it or run all test cases (headers & footers convert to & from digit arrays) xì2n)ì2n :Implicit input of 2D digit array x :Reduce by addition after ...
(more)
almost 3 years ago
Comment Post #282537 Not at all, @user; it's just your solution golfed down further. And I'd always much rather help out a newcomer to Japt to the rep I might get from posting something myself.
(more)
almost 3 years ago
Comment Post #282537 Welcome to Japt :) You can save 3 bytes here using one of Japt's own variables (i.e., an uppercase letter) to assign the function to, avoiding the need to switch in & out of JS. But you can get even shorter by using Japt's built-in recursion (`ß`) with `o@ßX` which can be further shortened with a sho...
(more)
almost 3 years ago
Edit Post #282301 Post edited:
almost 3 years ago
Comment Post #282506 Are [functions](https://tio.run/##y0osSyxOLsosKNHNy09J/Z9m@z/P1i61LDFHIwHIUKnOq9XOS9D8n5yfV5yfk6qXk5@uoaSknaZhaKCpyYUsChbSsNDU/A8A) not permitted?
(more)
almost 3 years ago
Edit Post #282507 Post edited:
almost 3 years ago