In MATLAB and Octave, the default output looks like this (I guess this is relevant for other languages as well):
'This is a string'
ans =
This is a string
x = 'This is a string'
x =
This is a string
Using disp will give:
disp('This is a string')
This is a string
There are, as far as I ...
@Vihan Yes, it works on Octave. I've tried version 4.0.0. Just download the compiler from Github (latest version: 14.0.0). Then, to run for example the rainbow answer, type
In the fewest bytes possible, change every lower-case letter in a string to a different upper-case letter.
There is a twist: you must also provide a "before and after" example containing real words that are at least 5 letters long. For instance:
hello > FUNNY
You cannot copy someone else's "be...
@Vihan I used the option to remove the XML header in the end, the meta answer you provided me treated about functions rather than whole programs
Btw, could it be interesting to do challenges with XML, JSON or other verbose formats to see if golfing languages can compete with languages equipped to deal with them?
@Vihan thanks for the edit, I should really have checked what I posted before linking it !
According to the Octave help:
The origin (0, 0) for images is located in the
upper left. For ordinary plots, the origin is located in the lower
left. Octave handles this inversion by plotting the data normally,
and then reversing the direction of the y-axis by setting the
'ydir' property ...
FWIW, I don't think this is unclear: it's just too broad (indeed I voted to close it as too broad.) Putting the twist aside, any string transformation with no lowercase fixed point is valid. — Aqua Tart1 min ago
I still use it occasionally. It's still Martin's weapon of choice, and he posts more answers than anybody. There are also Jimmy, Sp3000, Don Muesli and (of course) aditsu.
I was itching to play some multiplayer Doom until I realized I lost my WAD collection when my hard drive went boom :( I own Doom 2 on Steam but I lost the other IWADs and I'll have to dig them up
Minimum Scalar Product
The inspiration for this code golf problem is from Google's code jam competition. The premise behind the problem is, given the input of two vectors of varying lengths, find the minimum possible scalar. A scalar can be found using the following formula:
x1 * y1 + x2 * y2 +...
The goal of this project is a bit technical but hopefully to have someone to advise me better.
Note that I work in a multi-clustering context, which means that I have the same program running on multiple machines.
First, I have a producer who send me the events that need to come in order when t...
@NewMainPosts I want to comment "This is the wrong section of Stack Exchange in which to ask for programming help." but I feel I should add another sentence to it
They posted that question on Programmers as well, so I want to add "I see that you've already posted this question to the Programmers Stack Exchange site, " but I'm having trouble completing that sentence
This is not a challenge but a question, I figured it was on topic because of
Non-challenge questions that are related to solving programming puzzles or a particular type of challenge are also on topic.
Now on to the question:
Is it possible to write any JavaScript code with only 5 letters....
This feature request (and it being declined) is almost 6 years old. I'd appreciate if this could be reconsidered. There are a lot of use cases that have been mentioned but I don't even think this should be focused on code blocks. Since code blocks get a scrollbar anyway you can already fill your ...
The Scenario
You are given a matrix of size m x n (width x height) with m*n spots where there are a few obstacles. Spots with obstacles are marked as 1, and those without are marked as 0. You can move vertically or horizontally, but can visit each spot only once. The goal is to cover as much are...
@flawr Create a Stack Snippet as usual, having CSS and JavaScript blank, and mark the Hidden snippet check box. Inside a snippet you may do any HTML you can do on SE, but you can't do Markdown.
For that you need a Markdown to HTML transpiler or Markdown editor, i.e. MdCharm. And some Stack Exchange things are unavailable.
I don't participate enough in PCG to feel I should have a say in whether that community allows profanity in their question titles, and I'm not particularly interested in opening yet another, "Is the language “BrainF_ck” offensive?" question.
However, the hot questions list appears on all the net...
Meme: Monking
Originator: Morwenn
Cultural Height: The 2nd Monitor
Background: A morning greeting to the Monkey doing his monkey-business, in other words: monking
Examples: A small chat search
Variations: Monkernoon, Monkevening, Monknight, ... Important is only that it begins with Monk... ;...