Activity for Shaggy
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #282294 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282294 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282294 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282294 | Initial revision | — | almost 4 years ago |
Answer | — |
A: Merge two strings Japt `-h`, 13 12 9 bytes à m+V kbU Try it à m+V kbU :Implicit input of strings U & V à :Combinations of U m :Map +V : Append V k :Filter elements that return falsey (i.e., 0) bU : First 0-based i... (more) |
— | almost 4 years ago |
Edit | Post #282293 | Initial revision | — | almost 4 years ago |
Answer | — |
A: Are they abundant, deficient or perfect? Japt, 11 bytes Could be 2 bytes shorter if not for a bug in Japt when trying to get the proper divisors of a number. õ üÈgXnXâ x Try it õ üÈgXnXâ x :Implicit input of integer U õ :Range [0,U] ü :Group & sort È :By passin... (more) |
— | almost 4 years ago |
Edit | Post #282287 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282287 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282287 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282287 |
Post edited: |
— | almost 4 years ago |
Comment | Post #282282 |
Won't `\w+` fail if any of the words contain anything other than `[0-9a-zA-Z_]`? (more) |
— | almost 4 years ago |
Edit | Post #282287 | Initial revision | — | almost 4 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) |
— | almost 4 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) |
— | almost 4 years ago |
Edit | Post #282264 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282264 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282264 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282264 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282264 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282264 |
Post edited: |
— | almost 4 years ago |
Edit | Post #282264 | Initial revision | — | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 years ago |
Comment | Post #279743 |
[Related](https://codegolf.stackexchange.com/q/124362/58974) (more) |
— | almost 4 years ago |
Comment | Post #279747 |
Alternative to that last one: https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=IVA8PCFQPDwhUDw8IVA8PCFQPDwhUDw8IVA8PCFQPDwhUA (more) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 years ago |
Edit | Post #282259 | Initial revision | — | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 years ago |
Comment | Post #280708 |
[13 bytes](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVI&code=O0Lj6iBrYidBIPsg6g) (more) |
— | almost 4 years ago |
Edit | Post #282258 | Initial revision | — | almost 4 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) |
— | almost 4 years ago |
Comment | Post #279747 |
And another: `N` followed by 256 `³`s and then get the length of that with `Ê`. (more) |
— | almost 4 years ago |
Comment | Post #279747 |
Here's another: https://petershaggynoble.github.io/Japt-Interpreter/?v=2.0a0&code=YGJhYWFhYWFhYWBuYGFi (more) |
— | almost 4 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) |
— | almost 4 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) |
— | almost 4 years ago |
Comment | Post #279747 |
And you can do the same with `U´` and then add `a` to the last line. (more) |
— | almost 4 years ago |
Edit | Post #282209 | Initial revision | — | almost 4 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) |
— | almost 4 years ago |
Comment | Post #279747 |
One last one for now, which won't fit here: 258 `°`s, each on its own line. (more) |
— | almost 4 years ago |