Make it night! popularity-contest image-processing
You just went on vacation to see some scenery in the beautiful night. Unfortunately, your alarm clock malfunctions and when you wake up, it's daytime.
Your mother would like to see some photos, but you can only take pictures in the day. You wou...
Given two positive integers, W and H, output an ASCII-art box whose border is made of slashes (/ and \) with W "spikes" on the top and bottom edges, and H "spikes" on the left and right edges. The box's interior is filled with spaces.
A "spike" is simply two slashes coming together to form an ar...
@DestructibleLemon man thanks a ton for Cubically's name. It's turned into a big thing and I'm glad I wasn't stuck calling it "Rubik's Cube Language" >.<
I understand steam's library calls, not the oauth half of it.
If I did that, then they'red theoretically be a way to determine what folder someone's using based on their steamid alone (Or some other known variable)
Key is actually used in encoding and decoding the files, so the key would need to be something, and if it's unique for each steamID, it would somehow have to be derived from it (Or at the very least, generate a new crypto-random key, and save it against the steamid)
It almost looks like I care about security if you ignore the fact that it's main method of encryption is XOR and the key is passed over GET arguments.
It's less security more anonymity I'm going for I suppose.
Wonder if there is any list where PLs are rated by demand÷supply of programmers.
Why did Java and C take a nosedive since the beginning of 2016? And what has taken over? It would seem that the area below all graphs (even the not shown ones) should always add up to 100%, no?
> The top programming languages are in a long term decline: both Java and C have all time low scores in the TIOBE index. And almost all of the other top 10 languages are going down as well year to year. So what languages are taking advantage of this? It is all happening down in the charts around position 40. A new set of languages is gaining ground, notably Crystal (#32), Kotlin (#41), Clojure (#42), Hack (#43) and Julia (#46).
@ASCII-only Well, since velocity = distance/time, we can calculate the time it takes by somehow finding the length of one of the curves and then dividing that by the given velocity. I currently have no idea how to get the length, though...
CMC: Given an integer, increment it by 2 and multiply the deduplicated prime factors. Test cases: 12 -> 14 -> [2, 7] -> [2, 7] -> 14, 14 -> 16 -> [2,2,2,2] -> [2] -> 2. The integer given will be ≥ 0.
@Mr.Xcoder The APL solution is pretty straight forward. 2|⊢ is the division remainder of the unmodified argument when divided by 2. ⊢× multiplies the unmodified input by that. ×/ is product.
@ASCII-only I watched videos on ice spec and find te whole thing convoluted. Why have they embedded this into the webrtc spec? I don't want fancy SDP encoding or TURN fall backs, which are in no way peer to peer. I just wish to try and connect to an IP address that I know, like I would in any other langayge. Do I have to deal with all this relays, stun and turn nonsense?
Does anyone know how to take input from STDIN in C++ (no function), without #include<iostream> and std::cin>>blahblah;? (Preferably), is there a way to do it with stdio.h?
Now all the solutions I write will be a post of my Swift solution which is a post of my Pyth solution :)) (which BTW would be a tiny bit shorter with string formatting, but I'm lazy)
@Mr.Xcoder Why? You have three distinct parts: Extract digits, Convert them to numbers, Sum them. We extract digits using the intersection with all digits ∩⎕D, Convert them to numbers by executing each ⍎¨ and finally sum them by inserting plusses between them +/.
@Adám Full explanation (up to you to decide how close you were): ØD - digits, f remove all the elements in X (input) that are not in Y (digits), V€ - convert each to an integer. S - sum.
orientating around a 1000 line file with line lengths of ~2000 chars isn't easy.. especially if the info required for one line analyzing is in 10 different separated places and isn't at the same indentations ever
I want to create another golfing ASCII-art language (because SOGL is very very horrible) but 1) I'm too lazy 2) there isn't a language that suits my needs for its creation so 3) I'm creating another language in which to create it :p
@ASCII-only JS gives errors only when they are directly in front of doing something while java tries it's best to predict it ahead of time (and that's much more efficient than anything in JS as java is strictly typed)