Difference between revisions of "Sandbox"

From "A B C"
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 +
<div id="BIO>
 
{{sandbox}}
 
{{sandbox}}
 
<!-- We politely ask you to leave the lines above unchanged.  As this page is for editing experiments, content is subject to deletion without notice -->
 
<!-- We politely ask you to leave the lines above unchanged.  As this page is for editing experiments, content is subject to deletion without notice -->
Line 24: Line 25:
 
for (1:100) do { this }
 
for (1:100) do { this }
 
</source>
 
</source>
 +
 +
==Expand==
 +
 +
<div class="mw-collapsible mw-collapsed" data-expandtext="Hint" data-collapsetext="Collapse" style="width:40%; border:solid 1px; background-color:#F6FFE6; padding:10px;">'''The Road Not Taken'''&nbsp;&nbsp;&nbsp;&nbsp;<small>''Robert Frost''</small> 
 +
<div class="mw-collapsible-content">
 +
Two roads diverged in a yellow wood,<br />And sorry I could not travel both<br />And be one traveler, long I stood<br />And looked down one as far as I could<br />To where it bent in the undergrowth;<br />&nbsp;<br />Then took the other, as just as fair,<br />And having perhaps the better claim<br />Because it was grassy and wanted wear,<br />Though as for that the passing there<br />Had worn them really about the same,<br />&nbsp;<br />And both that morning equally lay<br />In leaves no step had trodden black.<br />Oh, I marked the first for another day!<br />Yet knowing how way leads on to way<br />I doubted if I should ever come back.<br />&nbsp;<br />I shall be telling this with a sigh<br />Somewhere ages and ages hence:<br />Two roads diverged in a wood, and I,<br />I took the one less traveled by,<br />And that has made all the difference.
 +
 +
<div class="mw-collapsible mw-collapsed" data-expandtext="Code" data-collapsetext="Collapse" style="width:90%; border:solid 1px; background-color:#F6E6FF; padding:10px;">'''Perl code solution'''&nbsp;&nbsp;&nbsp;&nbsp;<small>Click for the code</small> 
 +
<div class="mw-collapsible-content">
 +
<source lang="r">
 +
a <- 5 # just a simple test
 +
a
 +
[1] 5
 +
b <- "test"
 +
c <- rnorm(1, 100)
 +
plot(b, d, xlim=c(1,100)) # margins?
 +
for (1:100) do { this }
 +
</source>
 +
</div>
 +
</div>
 +
 +
 +
</div>
 +
</div>
 +
 +
 +
</div>

Revision as of 21:02, 25 October 2012

Welcome to the Course Wiki Sandbox! This page is for editing experiments. Feel free to try your skills at formatting here. To edit, click the edit tab at the top of the page, make your changes in the dialog box, and click the Save page button when you are finished. Content added here will not stay permanently. Please note that you have to be registered and logged in for changes. If you would like to try a Wiki Sandbox but don't want to register, you can use the Wikimedia Sandbox.

For information on how to edit pages see the Editing help page.

 

Please edit below

Text, italic and bold.

:-)


Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \sqrt{2}\approx 1.4}

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \nearrow \; \searrow \; \swarrow \; \nwarrow}

GeSHI

a <- 5 # just a simple test
a
[1] 5
b <- "test"
c <- rnorm(1, 100)
plot(b, d, xlim=c(1,100)) # margins?
for (1:100) do { this }

Expand

The Road Not Taken    Robert Frost

Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveler, long I stood
And looked down one as far as I could
To where it bent in the undergrowth;
 
Then took the other, as just as fair,
And having perhaps the better claim
Because it was grassy and wanted wear,
Though as for that the passing there
Had worn them really about the same,
 
And both that morning equally lay
In leaves no step had trodden black.
Oh, I marked the first for another day!
Yet knowing how way leads on to way
I doubted if I should ever come back.
 
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I,
I took the one less traveled by,
And that has made all the difference.

Perl code solution    Click for the code
a <- 5 # just a simple test
a
[1] 5
b <- "test"
c <- rnorm(1, 100)
plot(b, d, xlim=c(1,100)) # margins?
for (1:100) do { this }