Z shell (zsh), 4 bytes
<$0
The Z shell has feline functionalities built in. The fourth character is a linefeed.
The code does not depend in any way on the file name; it works even if the file name contains special character, such as spaces or newlines.
Test run
$ cat "my quine.sh"
<$0
$ zsh...
@VoteToClose I don't really mind the way they're on the same line (in this case). I mean I'd rather see the cases indented from the switch, since they're enclosed in braces:
switch(someInt){
case 1: return 1;
case 2: return 2;
//etc
}
Evolution of Tetration - Abandoned
Note: If you thought you liked this idea, I've made this CW, so you can just revert the edit and work on it yourself.
Pancake Stack, 342 316 bytes
Put this nice pancake on top!
[]
Put this pancake on top!
How about a hotcake?
If the pancake is tasty, go over to "".
Put this delightful pancake on top!
[#]
Eat the pancake on top!
Eat the pancake on top!
Show me a pancake!
Eat the pancake on top!
If the pancake i...
Since the byte count does not form part of the winning criterion anymore, this challenge now boils down to count up to the highest possible value in your language. That's neither particularly interesting nor a programming contest; it's just a search for the language with the largest BigInteger type. — Dennis ♦51 secs ago
I don't feel like mod-hammering this, but I do think it should be closed.
When golfing in ><>, having short numbers is very important. Now write some code.
The program should input an integer, and output the shortest ><> representation. For the non-><> users, numbers work like this.
0-9a-f | push to stack
+-*, | take x,y off stack, push x(operator)y to stack
...
@BetaDecay In my local supermarket you can buy bottles of green tea derived drinks which are intended to be refrigerated. They also have a range of "cold infusions" to which you're meant to add chilled water.
@BetaDecay I've never tried it, but according to a friend who lived in Argentina for a couple of years it keeps you awake far more effectively than "normal" tea.
dog is a command-line utility that takes in an arbitrary number of arguments,
the first of which is the text to be written and the others are arbitrarily many files.
The dog utility will split the text in equal portions over these files. If there is a remainder n, the first n files get an additi...
Bulking season
The barbells at my gym look like this:
=========[]-----------------------[]=========
They can hold plates of five different sizes, 2.5 pounds, five pounds, ten pounds, 25 pounds, and 45 pounds:
.
. ! |
. ! | | |
| | | | |
' ! | ...
In mathematics, the Cantor set is a set of points lying on a single line segment that has a number of remarkable and deep properties. It was discovered in 1874 by Henry John Stephen Smith and introduced by German mathematician Georg Cantor in 1883.
Through consideration of this set, Cantor and others helped lay the foundations of modern point-set topology. Although Cantor himself defined the set in a general, abstract way, the most common modern construction is the Cantor ternary set, built by removing the middle thirds of a line segment. Cantor himself only mentioned the ternary construction in...