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 #283160 Initial revision over 2 years ago
Answer A: Guess the language! (Cops' Thread)
brainfuck, cracked by Aaron Miller, 243 bytes void main(x,y)->{ printf=io.write(z=x-y); printf("+++++[++++>---.+[--->++++.+.+++.+[---->++++.[->++++.+++++++++++++.----------.-[--->+-.>-[--->+---.--[--->+-.-------------..+++.+++++++++++++.+."); print "Cops and Robbers"; }
(more)
over 2 years ago
Edit Post #283107 Post edited:
over 2 years ago
Comment Post #283141 Are leading or trailing newlines permitted?
(more)
over 2 years ago
Comment Post #283107 I would credit you both, of course.
(more)
over 2 years ago
Comment Post #283157 A-ha! I knew it was one of the Cs but it was too fiddly to test them all on my phone when I saw that post.
(more)
over 2 years ago
Comment Post #283107 Correct, @#53310; do you want to post that to the robbers' challenge?
(more)
over 2 years ago
Edit Post #282982 Post edited:
over 2 years ago
Edit Post #282982 Post edited:
over 2 years ago
Edit Post #283158 Initial revision over 2 years ago
Answer A: 99 Shortened Bottles of Beer
Japt, 117 116 115 bytes Needs more golfing or, perhaps, a completely different approach. Borrows a couple of tricks trick from ETHProductions' original version. Includes 2 trailing newlines. ´LÇ=L+` Þ­¤{´LÎçs}  Þ8`". {=Z+`  e Ø!`}, {Z}. {LÎg`Go ‘ e ÐJe „d ¿y Ñ Ú ...
(more)
over 2 years ago
Comment Post #283130 Ah, well, if you're deliberately trying to avoid that, then ... Personally, I see no harm in it; the optimal solution is the optimal solution, regardless of whether or not someone has already posted it elsewhere. Although, if you're just copying it directly then an acknowledgement of the original ...
(more)
over 2 years ago
Comment Post #283137 Strictly speaking, both outputs here are truthy as they're both non-empty strings.
(more)
over 2 years ago
Comment Post #283140 Can you add a [TIO](https://tio.run/) or equivalent, please?
(more)
over 2 years ago
Edit Post #282982 Post edited:
over 2 years ago
Edit Post #282310 Post edited:
over 2 years ago
Edit Post #282305 Post edited:
almost 3 years ago
Edit Post #282303 Post edited:
almost 3 years ago
Edit Post #279287 Post edited:
almost 3 years ago
Comment Post #283135 While, technically, `v1` _does_ check if a number is an integer, what the `v` method actually does is check if the number it's applied to is divisible by the argument passed to it (which defaults to 2).
(more)
almost 3 years ago
Comment Post #283135 [3 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=rHYx&input=WzAgMSA2NCA4OCAyMTQ3NDgzNjQ3XQotbVM)
(more)
almost 3 years ago
Comment Post #283133 Fails for `0`, which should be truthy. I think you'll need `√∊0,⍳`, unless APL has a 0-based range built-in.
(more)
almost 3 years ago
Comment Post #283132 Welcome to Code Golf :) You can save a byte with `.5` instead of `0.5`.
(more)
almost 3 years ago
Comment Post #283130 You should be able to get this down to 24 by mapping and squaring the range and then checking if it contains `a`.
(more)
almost 3 years ago
Comment Post #283129 And, with regard to the note at the end, your solution should work for _all_ possible inputs, without modification.
(more)
almost 3 years ago
Comment Post #283129 This seems to return `false` for all squares greater than `4`. Also, we're not restricted to using TIO; you can use another online interpreter that has the features you need.
(more)
almost 3 years ago
Edit Post #283128 Initial revision almost 3 years ago
Question It's Hip to be Square
Challenge A catalogue type challenge that simply asks: Given an integer `n` (where `n>=0`) as input return a truthy value if `n` is a perfect square or a falsey value if not. Rules - You may take input by any reasonable, convenient means. - You need not handle inputs greater than what your ch...
(more)
almost 3 years ago
Comment Post #283126 PicoLisp: https://codegolf.codidact.com/posts/283127#answer-283127
(more)
almost 3 years ago
Edit Post #283127 Initial revision almost 3 years ago
Answer A: Guess the language! (Robbers' Thread)
Cracks Mark Girrafe's answer: PicoLisp A sneaky search of TIO's GitHub org revealed this one ;) (prinl "Cops and Robbers")(bye) Try it online!
(more)
almost 3 years ago
Edit Post #283107 Post edited:
almost 3 years ago
Comment Post #283107 Not my intended solution(s), @#53579; I hadn't thought of languages that behave like that - should've stuck with my original version instead of opting for the shorter one or, at least, stated that the solution should be irreducible. Have the "W" nonetheless, but I won't reveal the intended solution j...
(more)
almost 3 years ago
Edit Post #283107 Post edited:
almost 3 years ago
Edit Post #283107 Initial revision almost 3 years ago
Answer A: Guess the language! (Cops' Thread)
Rockstar, cracked by Hakerh400, 126 bytes I never thought of languages that would ignore everything except the strings - I should have stated that the solution should be irreducible. Hakerh400 gets the win here but Razetime got the correct answer after the fact. Let the cops be "Cops" ...
(more)
almost 3 years ago
Edit Post #283094 Post edited:
almost 3 years ago
Edit Post #283094 Post edited:
almost 3 years ago
Comment Post #283094 It is indeed JSFuck, @#53837, nicely done. The shorter version will only work in Firefox v90+ but the longer version works in Node. You will need to override `alert` with `console.log`, though.
(more)
almost 3 years ago
Edit Post #282967 Post edited:
almost 3 years ago
Edit Post #283094 Post edited:
almost 3 years ago
Edit Post #283094 Initial revision almost 3 years ago
Answer A: Guess the language! (Cops' Thread)
JSFuck, cracked by user, 6106 bytes With honourable mention to AndrewTheCodeGolfer who first recognised it as JavaScript. This version will only work in Firefox v90+. [][(![]+[])[+!![]]+(!![]+[])[+[]]][([]+[][(![]+[])[+!![]]+(!![]+[])[+[]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+!![]]+(!![]...
(more)
almost 3 years ago
Comment Post #283089 Rust: https://codegolf.codidact.com/posts/283093#answer-283093
(more)
almost 3 years ago
Edit Post #283093 Initial revision almost 3 years ago
Answer A: Guess the language! (Robbers' Thread)
Cracks Mark Girrafe's answer: Rust fn main(){print!("Cops and Robbers")} Try it online!
(more)
almost 3 years ago
Comment Post #283090 F#: https://codegolf.codidact.com/posts/283092#answer-283092
(more)
almost 3 years ago
Edit Post #283092 Initial revision almost 3 years ago
Answer A: Guess the language! (Robbers' Thread)
Cracks Mark Girrafe's answer: F# printfn"Cops and Robbers" Try it online!
(more)
almost 3 years ago
Edit Post #282979 Post edited:
almost 3 years ago