@phase oh yeah JSmash is sort of an abandoned mess at the moment. Me and Geobits were talking about it earlier. I'll get back to it soon and fix stuff up.
Input is encoded into a number (through base decompression or whatever), and it is added to an accumulator. Then the program is read and for every + (or whatever char) the accumulator is incremented by one. Then the accumulator is converted to base 64 and turned into an image, which displays the output.
@Calvin'sHobbies yes, but it wouldn't matter because all text would be pixel art, which you could manipulate to get the right output if it needed to be smaller.
@Calvin'sHobbies it would only work for very specific cases, such as having part of your program turn the input into pixel art, then the other part be your algorithm to replace certain parts of it at different locations
@AlexA. Probably shouldn't say. What with all the non-americans here. I was in a chinese music ensemble in college and I bet that added like 4 months to my backgorund check
@Quill Yeah but his name is "Alex" which is pretty hard to find. Can I just search the name of the group? or should I change my name to something obscure and unique so that it is easily found.
@Quill That one was far and away the weirdest/creepiest/freakiest/etc. Only other one that came close was the Doritos baby commercial, which came off as funny, not as weird.
And that one is perhaps the most controversial in some circles.
i'll give this one to you: that message would have looked a lot better if my text editor didn't auto-insert tabs
====PPCG "DAWG" COUNT====
(number of messages containing "dawg")
undergroundmonorail: 14*
Alex A.: 12
quartata: 8
Quill: 4
Optimizer: 2
TimmyD: 2
Martin Büttner: 1**
Mego: 1
* including this one
** Martin linked to a Stack Overflow answer written by SO user "dawg"
I have been given 2D matrix of size NxM. They are filled with values in range from 1 to 10^6. I need to find out maximum frequency of elements taking any row and column at a time.
Constraints
1<=NxM<=10^6
1<=Elements in Arrays<=10^6
Example
1 2 1 2
3 4 1 2
1 1 1 1
2 2 2 2
Answer: Maximum freque...
i was briefly like "i should make a bot that keeps track of everyone's dawg count and you can say !dawg to see the leaderboards" but there are two problems with that. the first is that requesting the leaderboard would up your count. the second is that gamifying "dawg" would probably make people say it a lot more than they otherwise would and i t would be annoying
I have been given 2D matrix of size NxM. They are filled with values in range from 1 to 10^6. I need to find out maximum frequency of elements taking any row and column at a time.
Constraints
1<=NxM<=10^6
1<=Elements in Arrays<=10^6
Example
1 2 1 2
3 4 1 2
1 1 1 1
2 2 2 2
Answer: Maximum freque...
Create a function or program that takes a number as input, and outputs a string where ASCII-code points for the lower and upper case alphabet are substituted by their character equivalents.
The upper case alphabet use the code points: 65-90
The lower case alphabet use the code points: 97-122
...
Introduction
I have recently started playing clickerheroes again. In the recent patch they introduced a new mechanic to mercenaries namely their lifetime. Insteadof having a random chance at dieing now they have a certain lifspan given by a geometric distribution of p = 0,2. They can be sent on ...
Switch that value!
This will be a code-golf challenge
Introduction
In most languages it's very easy to switch or toggle a boolean value:
var x = true;
x = !x;
But what if you need to toggle a non-boolean value, like ['on', 'off']? It might get longer:
var x = 'on';
if ('on' == x) {
x...
Introduction
My grandpa is a fan of James Bond, but he is always unsure on how to rank his favourite actors. As such, he is always making lists, which is a lot of work. He asked me to produce a program that will make his life easier, but I do not have time for that, I have to work! So I will cou...
ToUpperCase... Mathematica style
For this challenge, you must write a program or function that converts every character in a string to upper case. "Wouldn't this be too broad?" you ask. Nope; you have to exactly implement Mathematica 10.1's ToUpperCase function!
Note
ToUpperCase works quite pe...
Where does the spaceship go?
code-golfgridgeometry
Based on an idea suggested by Zgarb.
A spaceship is moving around a regular 3D grid. The cells of the grid are indexed with integers in a right-handed coordinate system, xyz. The spaceship starts at the origin, pointing along the positive x ax...
> Good morning
Good night !
> What time zone are you in?
00
> Isn't it afternoon there now?
Yes
> Then don't say good night yet.
I ' m not sure how to do that .
> Are you ready for the site to graduate?
I ' m not sure what you mean .
> PPCG might be graduating soon. Are you excited?
I ' m not sure how to do that .
> What do you want to do?
_UNK
> Do you know what a llama is?
No
> Do you know what a dog is?
No
> Do you know what a cat is?
No .
> What do you know?
_UNK
> I would really appreciate it if you would stop saying _UNK.
Probably not. To be fair, this was nowhere near the top, but I still wouldn't consider it very magic. Could it be moved to some more easily configurable place? Sure, but meh :)
I built a tree of hidden fields to mimic my actual tree, and instead of updating the actual tree, I update the tree of hidden fields because they persist their changes to the server.
Not wasted! You got to learn more about Telerik, so your, umm... knowledge capital has gone up in value and umm... yea, you see where I'm going with this.
@quintopia Good choice. Comedian, reasonably popular so true fans may recognize you on the street, but not too popular so that you're mobbed by paparazzi.
The reporting solutions are more specific than average. I consider myself an expert because I have worked with Excel reports, Telerik reports, and SSRS reports
@TimmyD I don't know. I've thought about that, and I'm pretty sure I could find things to fill my days. Free from the necessity to earn a paycheck, I could pursue any number of things.
It doesn't have to be billions of course. Tens of millions would be just fine ;)
I sit at home lately and scroll through the Steam Store and the PSN store looking for games to play. I am not impressed. I could not handle being an anonymous billionaire.
I mean, think of guys like Musk. Dude's loaded, and I honestly think he starts companies because "damn that would be cool. why hasn't anyone done this yet?"
@TimmyD I would star this just for the audacity of calling linkin park classic rock, but it's annoying to have starred things that referred to unstarred things, forcing you to have to read the transcript
@TimmyD nothing that came out this millennium is classic yet. i'm willing to call nirvana and pearl jam classic rock by now, but a part of me still wants to say that classic rock will never leave the 1970s
here's my rule of thumb: it's a classic if it's older than that toy everyone had when you were a kid if that toy is no longer made and in retrospect it's unclear why anyone would have wanted it in the first place
in this case, it's classic if it's older than Furby
@quartata Yeah, but ([DBS]|R|G|T|P).+([CNS]|M|L|D|B).+ is not a legitimate regex for a list of James Bond actors, no matter how many feline breeding jokes you toss at it.
Maximise the squared distance
code-golfarray-manipulationpermutationsarithmetic
Consider a permutation of the integer values from 1 to N. E.g. this example for N = 4:
[1, 3, 4, 2]
We'll consider this list to be cyclic, such that 1 and 2 are treated as adjacent. One quantity we can compute fo...