Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
Module Program
|
||||
Sub Main()
|
||||
Const ROWS = 3
|
||||
Const COLS = 3
|
||||
|
||||
Dim rand As New Random(0)
|
||||
Dim getNumber = Function() rand.Next(10000)
|
||||
|
||||
Dim result =
|
||||
<table cellspacing="4" style="text-align:right; border:1px solid;">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>X</th>
|
||||
<th>Y</th>
|
||||
<th>Z</th>
|
||||
</tr>
|
||||
<%= From c In Enumerable.Range(1, COLS) Select
|
||||
<tr>
|
||||
<th><%= c %></th>
|
||||
<%= From r In Enumerable.Range(1, ROWS) Select
|
||||
<td><%= getNumber() %></td>
|
||||
%>
|
||||
</tr>
|
||||
%>
|
||||
</table>
|
||||
|
||||
Console.WriteLine(result)
|
||||
End Sub
|
||||
End Module
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
Module Program
|
||||
Sub Main()
|
||||
Dim rand As Func(Of Integer, Integer) = AddressOf New Random(0).Next
|
||||
|
||||
Dim cols = {"", "X", "Y", "Z"}
|
||||
Dim rows = 3
|
||||
|
||||
Dim result =
|
||||
<html>
|
||||
<body>
|
||||
<table>
|
||||
<colgroup>
|
||||
<%= Iterator Function()
|
||||
For Each col In cols
|
||||
Yield <col style="text-align: left;" />
|
||||
Next
|
||||
End Function() %>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<%= Iterator Function()
|
||||
For Each col In cols
|
||||
Yield <td><%= col %></td>
|
||||
Next
|
||||
End Function() %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= Iterator Function()
|
||||
For r = 1 To rows
|
||||
Yield _
|
||||
<tr>
|
||||
<%= Iterator Function()
|
||||
For key = 0 To cols.Length - 1
|
||||
Dim col = cols(key)
|
||||
Yield <td><%= If(key > 0, rand(10000), r) %></td>
|
||||
Next
|
||||
End Function() %>
|
||||
</tr>
|
||||
Next
|
||||
End Function() %>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Console.WriteLine(result)
|
||||
End Sub
|
||||
End Module
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
Module Program
|
||||
Sub Main()
|
||||
Dim rand As Func(Of Integer, Integer) = AddressOf New Random(0).Next
|
||||
|
||||
Dim cols = {"", "X", "Y", "Z"}
|
||||
Dim rows = 3
|
||||
|
||||
Dim result =
|
||||
<html>
|
||||
<body>
|
||||
<table>
|
||||
<colgroup>
|
||||
<%= cols.Select(Function(__) <col style="text-align: left;"/>) %>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<%= cols.Select(Function(col) <td><%= col %></td>) %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<%= Enumerable.Range(1, rows).Select(
|
||||
Function(r) _
|
||||
<tr>
|
||||
<%= cols.Select(
|
||||
Function(col, key) <td><%= If(key > 0, rand(10000), r) %></td>)
|
||||
%>
|
||||
</tr>)
|
||||
%>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Console.WriteLine(result)
|
||||
End Sub
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue