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 #282287 Post edited:
over 3 years ago
Comment Post #282282 Won't `\w+` fail if any of the words contain anything other than `[0-9a-zA-Z_]`?
(more)
over 3 years ago
Edit Post #282287 Initial revision over 3 years ago
Answer A: Word Count Tool
Japt v2.0a0, 19 18 17 bytes I need more caffeine! Takes input as an array of lines. Output is a reversed array. [Uc¸¬U¬Ucq\s f]ml Try it - includes all test cases, header splits string on newlines for ease of input. footer reverse the output for easier verification. [Uc¸¬U¬Ucq\...
(more)
over 3 years ago
Comment Post #282264 @Quintec, if you enjoyed that, you'll fecking love [this](https://codegolf.stackexchange.com/a/124389/58974)! Especially when you see how we made `39`!
(more)
over 3 years ago
Edit Post #282264 Post edited:
over 3 years ago
Edit Post #282264 Post edited:
over 3 years ago
Edit Post #282264 Post edited:
over 3 years ago
Edit Post #282264 Post edited:
over 3 years ago
Edit Post #282264 Post edited:
over 3 years ago
Edit Post #282264 Post edited:
over 3 years ago
Edit Post #282264 Initial revision over 3 years ago
Answer A: Output 256 in many different ways
Japt, 27 Solutions This started out as a collaboration with Quintec but quickly got very out of hand! Posted with their permission. More solutions to follow. Hopefully! 256 Try it Just the boring, literal `256`. 3^7^73^333 Try it Some bitwise XORing. 4²²...
(more)
over 3 years ago
Comment Post #279747 I was enjoying the collaboration but we _have_ gotten pretty far away from some of your original solutions so, as long as you don't mind, I'll post my own.
(more)
over 3 years ago
Comment Post #279747 Yeah, if we get the `*` back as I suggested above then we can do this: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=KKQqKKQqKKQqKKQqKKQqKKQqKKQqKKQ
(more)
over 3 years ago
Comment Post #279743 [Related](https://codegolf.stackexchange.com/q/124362/58974)
(more)
over 3 years ago
Comment Post #279747 Alternative to that last one: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=IVA8PCFQPDwhUDw8IVA8PCFQPDwhUDw8IVA8PCFQPDwhUA
(more)
over 3 years ago
Comment Post #279747 You could just do 256 `Ä`s and then use `D` to do this: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=RGq5PDxEark8PERquTw8RGq5PDxEark8PERquTw8RGq5PDxEark8PERquQ
(more)
over 3 years ago
Comment Post #279747 And we've also got the `+` back so we can do this: https://tio.run/##y0osKPn/P1JbWztyFI5k@P8/AA
(more)
over 3 years ago
Comment Post #279747 ... which, in turn, gives us the `"` which we can use with the `a` to do https://tio.run/##y0osKPn/XylxpANgCPz/DwA And, instead of using the `3`, the `7` _and_ the `9` together, we could do this with just the `9`: https://tio.run/##y0osKPn///DkUThyoeXhBf//AwA and use the `3` and the `7` to do this: h...
(more)
over 3 years ago
Comment Post #279747 Changing the custom base conversion one above to https://petershaggynoble.github.io/Japt-Interpreter/?v=2.0a0&code=YGVkZGRkZGRkZGCs7GBkZQ give us back the `s` allowing us to change your base-2 conversion one to https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.5&code=MTAwMDAwMDAwc80 ...
(more)
over 3 years ago
Comment Post #279747 Instead of squaring 64 and then repeatedly subtracting 1, we could do `Iz¼` instead, freeing up `É` to allow us to do this: https://tio.run/##y0osKPn//9DWw52jcCTD//8B That also frees up the `p` for us to use somewhere else. Or we could do `Gp` and `4²²` to free up the `*` instead.
(more)
over 3 years ago
Comment Post #279747 This is fun, let's keep going! https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=vS%2b9L70vvS%2b9L70vvS%2b9L70vvQ
(more)
over 3 years ago
Comment Post #279747 Last one for now, I promise! Replace the `b` in the base conversion one above with another letter, freeing it up to do this: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=JCdfYickYmI, with the underscore repeated 256 times.
(more)
over 3 years ago
Edit Post #282259 Initial revision over 3 years ago
Answer A: Evaluate a single variable polynomial equation
JavaScript (Node.js), 33 bytes a=>n=>a.reduce((o,x,y)=>o+xny) Try it online!
(more)
over 3 years ago
Comment Post #279747 Feck! I forgot we already used the `Ê`. So, to get it back, instead of prepending 256 `V`s to `;A` and getting the length, we could so this: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=O0FpUyBpUyBpUyBpUyBpUyBpUyBpUyBpUyB4Yw
(more)
over 3 years ago
Comment Post #279747 And, to take the lead, take the `J` that you've already used, replace it with `V` and then you can do `J` followed by 257 `nJ`s.
(more)
over 3 years ago
Comment Post #279747 One more to tie Raku: Take the `l` from the 256 element array one and replace it with `è¶B`, use the `l` instead of the `Ê` above and then you can do this: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=VLFUylSxVMpUsVRUsVRUsVRUsVRUsVRUsVRUsVQ
(more)
over 3 years ago
Comment Post #280708 [13 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=O0Lj6iBrYidBIPsg6g)
(more)
over 3 years ago
Edit Post #282258 Initial revision over 3 years ago
Answer A: Solve Goldbach's Conjecture
Japt, 13 bytes o ï æ@¶XxXej Try it o ï æ@¶XxXej :Implicit input of integer U o :Range [0,U) ï :Cartesian product æ :First pair X that returns true @ :When passed through the following function ...
(more)
over 3 years ago
Comment Post #279747 And another: `N` followed by 256 `³`s and then get the length of that with `Ê`.
(more)
over 3 years ago
Comment Post #279747 Here's another: https://petershaggynoble.github.io/Japt-Interpreter/?v=2.0a0&code=YGJhYWFhYWFhYWBuYGFi
(more)
over 3 years ago
Comment Post #279747 And, instead of newlines for the one where `U` gets repeatedly decremented, you could take the comma out of the 256 element array and use it.
(more)
over 3 years ago
Comment Post #279747 Ah, cack, I never think of whitespace characters in challenges like this! Dunno how I missed the `5` was gone already but here's another one that uses the same trick: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=0kbSRtJG0kbSRtJG0kbSRtJG0kbSRtJG0kbSRtJG0kY
(more)
over 3 years ago
Comment Post #279747 And you can do the same with `U´` and then add `a` to the last line.
(more)
over 3 years ago
Edit Post #282209 Initial revision over 3 years ago
Answer A: Truthify an array
JavaScript (V8), 44 bytes a=>a.map((a,x)=>a.map((n,y)=>n&&print(x,y))) Try it online!
(more)
over 3 years ago
Comment Post #279747 One last one for now, which won't fit here: 258 `°`s, each on its own line.
(more)
over 3 years ago
Comment Post #279747 And another: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=J1x1MDEwMWMg9SDF6A
(more)
over 3 years ago
Comment Post #279747 Here's another: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=I1x1MDEwMA
(more)
over 3 years ago
Comment Post #279747 Seeing as you haven't used `5` & `4` yet: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=NdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNdI10jXSNA
(more)
over 3 years ago
Comment Post #281380 [8 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=o69ZxCDopVg&input=WzMsNyw1LDQsOSwyLDMsMiw2LDZdCi1R)
(more)
over 3 years ago
Edit Post #282202 Initial revision over 3 years ago
Answer A: Truthify an array
Japt `-m`, 8 7 bytes ð òÎmiV Try it ð òÎmiV :Implicit map of each sub-array at 0-based index V ð :Indices of truthy (i.e., non-zero) elements ò :Partition between elements where Î :The sign of their difference is truthy m ...
(more)
over 3 years ago
Edit Post #282201 Initial revision over 3 years ago
Answer A: Create an Alphabet Diamond
Japt `-R`, 11 bytes ;Bå+ mê ê û Test it ;Bå+ mê ê û ;B :Uppercase alphabet å+ :Cumulatively reduce by concatenation m :Map ê : Palindromise ê :Palindromise û :Centre pad e...
(more)
over 3 years ago
Edit Post #282200 Initial revision over 3 years ago
Answer A: Evaluation order of an APL n-train
Japt, 10 bytes o ÅÔò cÔiU Try it o ÅÔò cÔiU :Implicit input of integer U o :Range [0,U) Å :Slice off the first element Ô :Reverse ò :Partitions of length 2 c :Map then flatten Ô ...
(more)
over 3 years ago