Sandbox

From Rosetta Code
Revision as of 15:53, 18 August 2010 by Ce (talk | contribs) (→‎Property query test: oops, misspelled category name ... no onder nothing worked :-))

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

Can you use a data URL?

[data:text/html,Hello%20World No.]

What if you transclude a category?

Follow the articles and subcategories for items requiring maintenance. -- Okay, the member list doesn't show up. No good.

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>

TITLE

code

pre test

Programming Task
This is a programming task. It lays out a problem which Rosetta Code users are encouraged to solve, using languages they know.

Code examples should be formatted along the lines of one of the existing prototypes.
<reddit programming/>
Test
Another line
Yet another line, this time one which clearly is much longer than the width of the browser window, at least assuming normal screen dimensions and font settings, and assuming the browser window is not wider than the screen (which would be impractical anyway).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

Testing new language tags

Z80

<lang z80>

some random instructions
 ld a, 80h
 ld b, 9Ah
 add a, b
 adc a, a
 rst 0 ; reboot :-)

</lang>

Whitespace

<lang whitespace> This may not be a meaningful whitespace

 program,

but it's just a highlighting test anyway. </lang>

AviSynth

<lang avisynth> AviSource("D:\clip.avi") ConvertToYUY2() PixieDust(5) </lang>

POV-Ray

<lang povray>

  1. declare factorial = function(C) { prod(i, 1, C, i) }
  2. declare A = factorial(5);

sphere{0,A} // a sphere </lang>

Text

<lang text> Is this actually a programming language, or really just plain text? </lang>

What happens if a language doesn't exist?

<lang somelanguagethatdoesnotexist> some code more code;

  • a b -> c /// &a1 ->>> 778

(Probably this is an obfuscated language :-)) </lang>

===Do the old language-free <tt>-Tags (for inline code formatting) still work? The variable foo is of type bar

Whitespace test with unicode ZERO WIDTH NO-BREAK SPACE character (U+FEFF)

<lang whitespace>



</lang> testing

Impl needed

Tcl pages: 987

Tcl/Omit pages: 7

Programming tasks: 1,271

Property query test

If I understand the ask syntax correctly, this should turn up a list of all programming languages: 0815, 11l, 1C, 360 Assembly, 4D, 4DOS Batch, 6502 Assembly, 6800 Assembly, 68000 Assembly, 8 1/2, 80386 Assembly, 8051 Assembly, 8080 Assembly, 8086 Assembly, 8th, A+, AArch64 Assembly, ABAP, ABC, ACL2, AHDL, ALGOL, ALGOL 60, ALGOL 68, ALGOL W, ALGOL-M, AMPL, ANSI BASIC, ANT, ANTLR, APL, ARM Assembly, ASIC, ASP, ASP.Net, ATS, AWK, Acornsoft Lisp, Action!, ActionScript, Acurity Architect, Ada, Agda, Agda2, Agena, Aikido, Aime, Algae, Alice ML, Alore... further results

Or maybe it works this way: 0815, 11l, 1C, 360 Assembly, 4D, 4DOS Batch, 6502 Assembly, 6800 Assembly, 68000 Assembly, 8 1/2, 80386 Assembly, 8051 Assembly, 8080 Assembly, 8086 Assembly, 8th, A+, AArch64 Assembly, ABAP, ABC, ACL2, AHDL, ALGOL, ALGOL 60, ALGOL 68, ALGOL W, ALGOL-M, AMPL, ANSI BASIC, ANT, ANTLR, APL, ARM Assembly, ASIC, ASP, ASP.Net, ATS, AWK, Acornsoft Lisp, Action!, ActionScript, Acurity Architect, Ada, Agda, Agda2, Agena, Aikido, Aime, Algae, Alice ML, Alore... further results

Maybe this way: Nor does this.

This should turn up all languages and libraries which provide Graphics: AWT, FLTK, FLTK4d, GTK, JavaFX, JavaFX, Kivy, MINOS, Swing, Tk, XUL::Gui

This should turn up anything which does not provide Graphics: Ayrch, Binary Lambda Calculus, C++, Emacs Lisp, Go, JavaFX, JavaFX, Slope, Swing, TclX, Ultimate++, Unlambda, V (Vlang)

This should turn up anything which provides first class functions: Binary Lambda Calculus, Emacs Lisp, Go, Slope, Unlambda, V (Vlang)

And this should be the intersection of the previous two sets: Binary Lambda Calculus, Emacs Lisp, Go, Slope, Unlambda, V (Vlang)