-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
183 lines (160 loc) · 4.2 KB
/
index.html
File metadata and controls
183 lines (160 loc) · 4.2 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Asyncio Examples - Corey Schafer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
padding: 2rem 1rem;
}
.container {
max-width: 700px;
margin: 0 auto;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 2rem;
}
.header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid #eee;
}
.header h1 {
font-size: 2rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 0.5rem;
}
.header p {
color: #666;
font-size: 1rem;
}
.examples {
list-style: none;
}
.example {
margin-bottom: 0.75rem;
}
.example a {
display: block;
padding: 1rem 1.25rem;
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 4px;
text-decoration: none;
color: #333;
transition: all 0.2s ease;
}
.example a:hover {
background: #e9ecef;
border-color: #5a6c7d;
}
.example-number {
font-weight: 600;
color: #5a6c7d;
font-size: 0.9rem;
}
.example-title {
font-size: 1rem;
font-weight: 500;
margin-top: 0.25rem;
color: #2c3e50;
}
.back-link {
text-align: center;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid #eee;
}
.back-link a {
color: #5a6c7d;
text-decoration: none;
font-size: 0.9rem;
}
.back-link a:hover {
color: #2c3e50;
}
@media (max-width: 600px) {
.container {
padding: 1.5rem;
}
.header h1 {
font-size: 1.75rem;
}
}
</style>
</head>
<body>
<div class="container">
<header class="header">
<h1>Asyncio Examples</h1>
<p>Python asynchronous programming demonstrations</p>
</header>
<ul class="examples">
<li class="example">
<a href="example_1.html">
<div class="example-number">Example 1</div>
<div class="example-title">
Synchronous Version (No AsyncIO or Event Loop)
</div>
</a>
</li>
<li class="example">
<a href="example_2.html">
<div class="example-number">Example 2</div>
<div class="example-title">
Running Await Directly on a Coroutine
</div>
</a>
</li>
<li class="example">
<a href="example_3.html">
<div class="example-number">Example 3</div>
<div class="example-title">
Schedule Tasks with asyncio.create_task
</div>
</a>
</li>
<li class="example">
<a href="example_4.html">
<div class="example-number">Example 4</div>
<div class="example-title">Awaiting in Different Orders</div>
</a>
</li>
<li class="example">
<a href="example_5.html">
<div class="example-number">Example 5</div>
<div class="example-title">Blocking the Event Loop</div>
</a>
</li>
<li class="example">
<a href="example_6.html">
<div class="example-number">Example 6</div>
<div class="example-title">Running Threads and Processes</div>
</a>
</li>
<li class="example">
<a href="example_7.html">
<div class="example-number">Example 7</div>
<div class="example-title">
Different Ways to Schedule and Run Tasks
</div>
</a>
</li>
</ul>
</div>
</body>
</html>