38
votes
Letter, Number, Symbol, Space, Repeat
Haskell 300 bytes
This code should have no trailing newline. The function m1 takes the input as a Char and returns the answer ...
30
votes
Write a program that always prints N when it is shifted N times up the ASCII alphabet
Ook!, 95 programs, 19992 14066 bytes
...
27
votes
When I grow up I want to be ASCII
JavaScript (Node.js), 39 bytes
A port of my CP-1610 answer.
I/O format: a Unicode code point.
n=>n>>7?Buffer("ACEIOOU")[n/4&7]^n&32:n
...
25
votes
Print every printable ASCII character without using it
Python 2, 1075 1065 1043 1040 1039 bytes
Each program has the form print'\<octal char code>', except:
' → ...
21
votes
Print every printable ASCII character without using it
CJam, 269 bytes
Each of the programs are in the form '<char - 1>) except for:
Space => S, 1 byte
...
20
votes
Square and square
JavaScript (ES6), N = 5
With a leading newline instead of a trailing newline.
alert
((a=`
`+!!0
)+a+a
+a+a)
JavaScript (ES6), N = 6
...
20
votes
When I grow up I want to be ASCII
PHP, 42 39 34 bytes
<?=iconv('','us//TRANSLIT',$argn);
-3 Bytes thanks to @Neil
Try it online!
19
votes
Map inputted ASCII characters
JavaScript (ES6) + HTML, 114 + 16 = 130 bytes
Saved 16 bytes thanks to @Shaggy
...
17
votes
Print the ASCII Code page
Python 3, 42 bytes
print(('%c'*16+'\n')*6%(*range(32,127),9))
Try it online!
Includes a trailing tab on the last line and a trailing newline.
16
votes
Map inputted ASCII characters
QBasic 4.5, 81 85 bytes
Added 4 bytes to comply with the spacing-rule.
DO
LOCATE 7,1
LINE INPUT A$:i=ASC(A$)
LOCATE i\16-1,(i MOD 16+1)*2
?CHR$(i)
LOOP
And the ...
15
votes
Print the ASCII Code page
Python 3, 52 bytes
for i in range(95):print(chr(i+32),end='\n'[~i%16:])
Try it online!
15
votes
Output a Latin square with a program which is a Latin square
C89 (using implicit int), 811 bytes (\$ n = 28 \$)
...
14
votes
ASCII's 95 Characters...95 Movie Quotes
6. Subskin (uses no K)
Line 9 in the following program is replaced with something testable. It has 2 trailing newlines, and exactly 64 newlines in total.
...
14
votes
Letter, Number, Symbol, Space, Repeat
Retina, 113 bytes
Letter, Number, Space, Symbol, Repeat
...
13
votes
Print every printable ASCII character without using it
Brainfuck, 1770 1710 1703 1686 bytes
60 bytes saved by Dennis
17 bytes saved by Sp3000
DNP: 46 (.)
...
13
votes
Print every printable ASCII character without using it
ASCII constrained x86 Machine Code for DOS, 3104 3101 2913 bytes
Well... It's shorter than Java, I guess...
32 30 bytes for almost all characters, for exceptions see below.
Most of the time it just ...
12
votes
12
votes
Draw an ASCII Grid
Python 3, 49 bytes
lambda n:f'\n{"--+"*~-n}--\n'.join([' |'*~-n]*n)
Try it online!
12
votes
Print the ASCII Code page
Prelude, 50 42 bytes
88+
6(1-) v^^( 1-++!)^6-!)
1- v+(1-) v(1-
Try it online!
Explanation
88+
6(1-)
1- v+
Push \$16\$ to ...
12
votes
Output a Latin square with a program which is a Latin square
APL (Dyalog Unicode), 109 bytes
Full program that prints to stdout.
...
11
votes
Print a Symbolic Negative of your Code
CJam, 3 × 3 (5 symbols)
[5,
S*3
/N*
Try it online in the CJam interpreter.
How it works
...
11
votes
Accepted
Print a Symbolic Negative of your Code
GolfScript, 3 × 3 (4 symbols)
4,m
`3/
n*o
Try it online on Web GolfScript.
Output
[0
1 2
3]
How it works
...
11
votes
11
votes
Accepted
Make a flag wave
05AB1E, 25 23 26 25 bytes
-2 thanks to Adnan
-1 thanks to Emigna
+3 thanks to Jonathan Allan (thanks for spending the time to catch that invalidity!)
...
11
votes
When I grow up I want to be ASCII
JavaScript (Node.js), 22 bytes
s=>s.normalize`NFD`[0]
Try it online!
save 2 bytes, thanks Arnauld.
11
votes
When I grow up I want to be ASCII
T-SQL, 35 33 bytes
SELECT v COLLATE Greek_BIN FROM t
Input is taken from a pre-existing table t with CHAR(1) column v, per our ...
11
votes
Accepted
Quines that print what their index is
Deorst, 1 byte
Try it online!
Commentator, 1 byte
Try it online!
Snails, 1 byte
...
10
votes
Accepted
Numbers for Letters
CJam, 58 57 54 51 50 49 bytes
Just when I wrote up the explanation, I noticed that one of the alternative 50 byte versions can be shortened by a byte...
...
10
votes
Print a Symbolic Negative of your Code
Pyth, 3x3, 4 Symbols
S]1
.5;
S]1
Output:
[1]
0.5
[1]
Explanation:
S sorts the one element list ...
10
votes
Print every printable ASCII character without using it
Java 8, 6798 6582 6577 bytes
sigh
This is basically a port of my Python 2 answer, but with all the boilerplate that comes with writing a full program in Java.
Now without any DNPs at all! Thanks, ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
printable-ascii × 74code-golf × 48
code-challenge × 16
ascii-art × 15
restricted-source × 15
source-layout × 14
string × 11
number × 4
hello-world × 4
answer-chaining × 4
kolmogorov-complexity × 3
grid × 3
cops-and-robbers × 3
math × 2
quine × 2
code-bowling × 2
crossword × 2
sequence × 1
geometry × 1
graphical-output × 1
primes × 1
date × 1
graph-theory × 1
base-conversion × 1
image-processing × 1