Sandbox: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 148: Line 148:
This gives a lot of stuff I ''don''t want, but not what I want. Maybe the following works:
This gives a lot of stuff I ''don''t want, but not what I want. Maybe the following works:
{{#ask: [[Subcategory::Programming Languages]] | default=No.}}
{{#ask: [[Subcategory::Programming Languages]] | default=No.}}

''Very'' unexpected result ... maybe this:
{{#ask: [[Subcategory of:Category:Programming Languages]] | default=Again nothing.}}


This should turn up all languages and libraries which provide Graphics:
This should turn up all languages and libraries which provide Graphics:

Revision as of 16:02, 18 August 2010

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.

Maybe this way: "$BLOCK--.REX", $BLOCK.REX, $ERR.HEL, $ERR.REX, $MORSE.HEL, $MORSE.REX, $SPELL.HEL, $SPELL.REX, $SUDOKU.HEL, $T.HEL, $T.REX, -RF-, 0cred, 100 doors, 100 prisoners, 10001th prime, 10Print, 15 puzzle game, 15 puzzle game in 3D, 15 puzzle solver, 16 puzzle game, 16 puzzle game/autohotkey, 2048, 21 game, 24 game, 24 game/Solve, 3d turtle graphics, 4-rings or 4-squares puzzle, 4-rings or 4-squares puzzle/X86 Assembly, 4tH, 7Basic, 8080 PL/M Compiler, 9 billion names of God the integer, 99 Bottles of Beer/Basic, 99 bottles of beer, A Zebrahead, A* search algorithm, A+B, A13x, ABC problem, ABC words, ADFGVX cipher, ADW Modula-2, ADub, AJFarmar, AKS test for primes, ALGOL 68 Genie, ALGOL 68R, ALGOL 68RS, ALGOL 68S... further results

This gives a lot of stuff I dont want, but not what I want. Maybe the following works: No.

Very unexpected result ... maybe this: Again nothing.

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)