@zyabin101 Yes, that's intentional. OP can singlehandedly reject and deny edit suggestions to own posts, like gold badge users can singlehandedly close questions with some tags.
I'm terrible with (javascript) regex. Can anyone guide me how to remove everything after a certain amount of characters, but keep only whole words (so after a space)? E.g. for the string 'abc def ghi', 5 -> 'abc', 6 -> 'abc', 7 -> 'abc def'
@MarsUltor No, LISP is (prefix (notation style)). Unary is unary. To represent unary negation in a postfix language, you need a word like neg or thereabouts.
@CᴏɴᴏʀO'Bʀɪᴇɴ Darned ppcg is making me want to golf down trivial code to one liners. My boss won't be happy when he finds out his production base is looking like a Befunge-93 program
Although, now the aliens can leave the screen, but that's an easy fix. I'll just calculate a point (like I was before), find deltaY/deltaX then atan it for the angle and pythagorean it for the length if needed.
Jolf is a prefix based golfing language made by @CᴏɴᴏʀO'Bʀɪᴇɴ.
What tips do you have for golfing in Jolf?
Please post one tip per answer.
These tips should be at least somewhat specific to Jolf, i.e. remove comments is a answer, but not a very good one.
@trichoplax Seems like it would penalize languages that have a built-in output size. But, no different than ASCII art challenges that require a fixed size output.
Julia, 95 bytes
n->(c=combinations([1:n;1:n],2);((L=length)(collect(filter(x->gcd(x...)<2,c)))÷2+1)/L(∪(c)))
Just the straightforward approach for now; I'll look into shorter/more elegant solutions soon. This is an anonymous function that accepts an integer and returns a float. To call it, a...
@TimmyD Good point - thanks. It's probably going to be a fixed function of N, but hopefully the Starry Night challenge is a good sign that people don't mind it being fixed
@Bas Yes I don't want to exclude any languages. I'm hoping that a fixed size for input N (like output 50N by 50N) will not exclude or annoy anyone, so that I can judge accuracy by pixels
Hmm. Last I checked, messing with in-call audio was not easy at all (in android or ios). Have they changed permissions on that, or is it going to be a rooted-only app?
I'd be interested to know how it works if he gets it up and running.
@CᴏɴᴏʀO'Bʀɪᴇɴ J exercise: Given an integer array, split it at 0s, reverse each part, and join back with 0s. E.g. 1 2 3 0 4 5 0 0 6 7 8 9 -> 3 2 1 0 5 4 0 0 9 8 7 6
@CᴏɴᴏʀO'Bʀɪᴇɴ Basically, given an array a and verb u, the code (u;.1) a looks at the first element of a, splits a on the occurrences of that element, applies u to each part, and joins the results back (in an array of boxes if u gives boxes, otherwise in a matrix)
ASP.NET question: Let's say I have some client and server side validation. The server side validation should never execute unless the user bypasses the client side validation. I want to throw an exception in that case. What kind of exception should I throw?
@CᴏɴᴏʀO'Bʀɪᴇɴ I think you'll have to use boxes; your current solution puts the sublists in a matrix, and pads with 0s if they have different lengths. Try (<@|. ;. 1) 0 , a and go from there.