-
Notifications
You must be signed in to change notification settings - Fork 0
/
sicp.html
197 lines (192 loc) · 6.87 KB
/
sicp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE HTML>
<!--
Hyperspace by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Chain Education</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload" onload="testETH()">
<script type="text/javascript">
function testETH(){
console.log('starting...');
var Web3 = require('web3');
var web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider("http://localhost:7545"));
var account = web3.eth.accounts[ 0 ];
var balance = web3.eth.getBalance(account);
console.log('account: ' + account);
console.log('balance: ' + balance);
document.getElementById('account').innerText = account;
document.getElementById('balance').innerText = balance;
}
</script>
<script type="text/javascript">
function send() {
var Web3 = require('web3');
var web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider("http://localhost:7545"));
var studentAccount = web3.eth.accounts[ 0 ];
var teacherAccount = web3.eth.accounts[ 1 ];
web3.eth.sendTransaction({from: studentAccount, to:teacherAccount, value: web3.toWei(1, 'ether'), gasLimit: 21000, gasPrice: 20000000000})
}
</script>
<!-- Header -->
<header id="header">
<a href="index.html" class="title">Chain Education</a>
<nav>
<ul>
<li><a href="study.html" class="active">Study</a></li>
<li><a href="work.html">Work</a></li>
<li><a href="account.html">Account</a></li>
</ul>
</nav>
</header>
<!-- Wrapper -->
<div id="wrapper">
<!-- Main -->
<section id="main" class="wrapper">
<div class="inner">
<div class="table-wrapper">
<h2>Structure and Interpretation of Computer Programs</h2>
<p>This course introduces students to the principles of computation. Upon completion of 6.001, students should be able to explain and apply the basic methods from programming languages to analyze computational systems, and to generate computational solutions to abstract problems. Substantial weekly programming assignments are an integral part of the course. This course is worth 4 Engineering Design Points.</p>
<table>
<thead>
<tr>
<th>Teachers</th>
<th>Description</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 1</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 2</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 3</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 4</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 5</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 6</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 7</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 8</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 9</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 10</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 11</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 12</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 13</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 14</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 15</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 16</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 17</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 18</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 19</a></td>
<td>10 UST</td>
</tr>
<tr>
<td>Hal Abelson<br>Gerald Jay Sussman</td>
<td><a href="sicp1.html">Lecture 20</a></td>
<td>10 UST</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
</div>
<!-- Footer -->
<footer id="footer" class="wrapper alt">
<div class="inner">
<ul class="menu">
<li>© Chain Education. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</footer>
<!-- Scripts -->
<script src="assets/js/web3.min.js"></script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>