Ask HN: What single line of code would you put on a programming shirt?
43 comments
If it has to be one line, the comment:
You are not expected to understand this.
from https://en.m.wikipedia.org/wiki/A_Commentary_on_the_UNIX_Ope... .:(){ :|:& };:
Though, now that I think about it, I'm pretty sure I've already seen that as a t-shirt.
Though, now that I think about it, I'm pretty sure I've already seen that as a t-shirt.
Is that a shell script? Doesn’t seem to do anything on my linux server.
It's a fork bomb in shell script. It's more human readable like this:
https://unix.stackexchange.com/questions/469950/why-cant-i-c...
bomb() {
bomb | bomb &
}; bomb
Apparently this trick doesn't work nowadays due to cgroups:https://unix.stackexchange.com/questions/469950/why-cant-i-c...
Just kidding :)
First thing you learn in unix is to not paste gibberish in terminal.
First thing you learn in unix is to not paste gibberish in terminal.
// DON'T TRY TO FIX THIS, IF REMOVED BREAKS PRODUCTION
If the footwear was appropriate, you could say something like:
>BOOT DEVICE NOT FOUND;
>FALLING BACK TO SNEAKERNET . . .
>BOOT DEVICE NOT FOUND;
>FALLING BACK TO SNEAKERNET . . .
Bash fork bomb. In fact, I have the tshirt.
:(){ :|:& };:
Good explanation here: https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/
:(){ :|:& };:
Good explanation here: https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/
The export-restricted perl munition t-shirt text:
http://www.cypherspace.org/adam/rsa/
#!/bin/perl -sp0777i<X+dlMLa^lN%0]dsXx++lMlN/dsM0<j]dsj
http://www.cypherspace.org/adam/rsa/
#!/bin/perl -sp0777i<X+dlMLa^lN%0]dsXx++lMlN/dsM0<j]dsj
// TODO: Fix me
Haven't seen this in a while;
There are 10 kinds of people in the world, those who understand binary and those who do not.
There are 10 kinds of people in the world, those who understand binary and those who do not.
⊢>+⌿÷≢
(seen at https://www.bonfire.com/store/arcfide/ ) ────┬────
┬─┬ ┼─┬─┬
└─┤ │ ├─┘
│ ├─┘
└─┘
(I don't think Tromp has merch)Fast inverse square root
0x5f3759df - ( i >> 1 );
https://github.com/scienceetonnante/Fast-Inverse-Square-Root...
0x5f3759df - ( i >> 1 );
https://github.com/scienceetonnante/Fast-Inverse-Square-Root...
import pdb; pdb.set_trace()
Or as one of these 'modern' 'linters' like to 'fix' it to: import pdb
pdb.set_trace()I second your annoyance with linters doing that.
You can add #noqa at the end of the line to avoid the linter rewrite.
You can add #noqa at the end of the line to avoid the linter rewrite.
I’d put $year: ERR_REQUIRE_ESM require of ES module strip-ansi not supported, cause people should know that it’s 202x and we are still practically almost already there.
const char* pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"; def sleep():
return sleep()I have a shirt from WWDC 2014 that I find humorous:
func yTown() { print("San Francisco WWDC 2014") }
func yTown() { print("San Francisco WWDC 2014") }
body { display: none !important; }
I'm not sure exactly, but I'd probably write it in Whitespace.
System.out.println("Hello World");
const y = f =>
(x => f(x(x)))
(x => f((...y) => x(x)(...y)))
for (;;) { printf("%s\n", "I'm in danger!"); };
life ← {⊃1 ⍵ ∨.∧ 3 4 = +/ +⌿ ¯1 0 1 ∘.⊖ ¯1 0 1 ⌽¨ ⊂⍵}
var let const input = variableConstant(true) - 100
[deleted]
return videotapes;
Not really programming or one line but:
01010011 01101000 01101111 01110111 00100000 01101101 01100101 00100000 01111001 01101111 01110101 01110010 00100000 01110100 01101001 01110100 01110011
NSFW
JavaScript:String.fromCharCode(...'01010011 01101000 01101111 01110111 00100000 01101101 01100101 00100000 01111001 01101111 01110101 01110010 00100000 01110100 01101001 01110100 01110011'.split(' ').map(i => parseInt(i, 2)))I used to say that to my girlfriend. She did.
# noqa
fsync();
(+ 1 2)
or
++i;
or
x ? x : y