~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to subjects/sample/hello.xml

  • Committer: mattgiuca
  • Date: 2008-02-03 04:06:38 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:381
media/browser/listing.js: Replaced table-based layout in file listing with
    div-based. (This was previously more convenient, but a div-based layout
    now makes sense for the fixed page size, and of course is much better
    suited to CSS manipulation).
media/browser/browser.css: Fixed up the inner divs of the file listing. Now
    there is a "middle" div which has a full canvas height (except the top
    headers and status bar). The contents of the file table are now
    overflow-scrolled. This means the outer page will never scroll, only the
    inner file table. Tested and works on both tables that are too small and
    tables that are too big for the canvas. Nice :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<problem name = "Hello Name">
 
2
    <desc>You need to write <b>Hello</b> and then your name.</desc>
 
3
    <partial>
 
4
<![CDATA[
 
5
print "Hello &lt;print the contents of the variable 'name' here&gt;."
 
6
]]>
 
7
    </partial>
 
8
    <solution>
 
9
<![CDATA[
 
10
# Sample solution, used to generate test output
 
11
greeting = "Hello"
 
12
print " ".join([greeting, name])
 
13
]]>
 
14
    </solution>
 
15
    <!-- Alternatively, <solution src="all_input_test_soln.py" /> -->
 
16
    <case name="&quot;Hello Alice&quot;">
 
17
        <!-- Specify input -->
 
18
        <var name="name" value="'Alice'" />
 
19
        <function desc="Match case insensitive" default="ignore">
 
20
            <stdout>str.lower</stdout>
 
21
        </function>
 
22
        <!-- Ensures that all outputs match exactly --> 
 
23
        <function desc="Match exactly" default="match"/>
 
24
    </case>
 
25
    <case name="&quot;Hello Bob&quot;">
 
26
        <!-- Specify input -->
 
27
        <var name="name" value="'Bob'" />
 
28
        <function desc="Match case insensitive" default="ignore">
 
29
            <stdout>lambda x:x.lower()</stdout>
 
30
        </function>
 
31
        <function desc="Match exactly" default="ignore">
 
32
            <stdout/>
 
33
        </function>
 
34
    </case>
 
35
</problem>