-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
290 lines (282 loc) · 15.1 KB
/
index.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="python.supply">
<meta name="author" content="python.supply">
<title>python.supply</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-153492261-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-153492261-3');
</script>
<script>
var favIcon = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGKSURBVHjaYryezkASAAggJgYSAUAAkawBIIBI1gAQQCRrAAggkAY+Qx1uRXmGf8wM/xmY2Fj5TU3YxUQZGEBSLPy8AqZmbAJ8DIyMEA0AAQAxAM7/A2wxABJLbxJLlAYT/Pnj1v74ARlmrA86YwH82/ro6QooNBZYrQkjLv/z2fz18f/7/AIAMQDO/wNsNAD87NcEDAEMM3gOO1P76cr10rQIICYNOH4NLy/zzKn99N8KK0kMM28DBu701MwCADEAzv8CAAEA//v6/fLp//75AQUNAwsJ/fbv/fbrAQEB//8J/fP3/PHr//vwAQIDAggQAAAAAgAxAM7/BP/8ABJKbwwtavXSkuyykv30+x57uwIIGO2wWO/AvAosPRRRmvvq0O2tRPbb1gEDAAKIERjTQF/+/fTx8/V7jIx/mdiBnrb8fu/2j6cvGJj+swoJ8mjqfb128df7jwzAMGFgAAggRmjSALIZYSGHzMbgAgQQLB6QVTCihjwqFyCASI44gAAiWQNAAJGsASDAACqKgVpcHy/CAAAAAElFTkSuQmCC";
var docHead = document.getElementsByTagName('head')[0];
var newLink = document.createElement('link');
newLink.rel = 'shortcut icon';
newLink.type = 'image/x-icon';
newLink.href = 'data:image/png;base64,'+favIcon;
docHead.appendChild(newLink);
</script>
<script>
var articleData = [
{
"title": "Strings, Regular Expressions, and Text Data Analysis",
"medium": "718df0886ef1",
"summary": "Built-in string methods and regular expressions can be used creatively to implement scalable workflows that process and analyze text data. Explore these tools and peripheral techniques within the context of a use case involving a Wikipedia data set."
},
{
"title": "Higher-Order Functions and Decorators",
"medium": "d6bb31a5c78d",
"summary": "Decorators deliver new forms of modularity and composability, helping you add features and functionalities in a quick, concise, and elegant way. Review their foundation (higher-order functions) and learn to use decorators in an illustrative use case."
},
{
"title": "Map, Reduce, and Multiprocessing",
"medium": "8d432343f3e7",
"summary": "Multiprocessing can be an effective way to speed up a time-consuming workflow via parallelization. This article illustrates how multiprocessing can be utilized in a concise way when implementing MapReduce-like workflows."
},
{
"title": "Iterators, Generators, and Uncertainty",
"medium": "a3e7f85183b",
"summary": "Iterators and generators are powerful and elegant abstractions that can help you work with data structures of an unknown or infinite size. Review how they are defined and conceptually related, and practice using them to manipulate data streams."
},
{
"title": "Analyzing and Transforming Abstract Syntax",
"medium": "d7d3da23b14f",
"summary": "Built-in libraries that allow you to operate directly on abstract syntax trees can help scale certain software development workflows dramatically. Learn how to use these features to analyze and transform Python code programmatically."
},
{
"title": "Embedded Languages via Overloading",
"medium": "ac942c18a65b",
"summary": "Extensive support for operator overloading can help you reduce the conceptual complexity of your library or framework, making it possible for programmers who use it to leverage the extensive knowledge and skills they already possess."
},
{
"title": "Advantages of Type Annotations",
"medium": "6c6eb70fa631",
"summary": "Native syntactic support for type annotations makes it possible to document information about code in a structured way that is amenable to automated parsing. Explore the advantages of leveraging this feature within use cases such as unit testing."
},
{
"title": "Static Checking via Metaclasses",
"medium": "cec368765b58",
"summary": "Metaclasses are how classes are created, and by defining your own metaclasses you can impose guidelines and constraints on new contributions to a codebase. See how metaclasses can help implement static checking of user-defined derived classes."
},
{
"title": "Working with Foreign Functions",
"medium": "ee3b5e40f2ca",
"summary": "A number of libraries and packages make it possible to invoke foreign functions written in another language (such as C/C++) and compiled into shared libraries. This article introduces some basic techniques for using shared libraries in your projects."
},
{
"title": "Comprehensions and Combinations",
"medium": "664f1c178c24",
"summary": "Comprehension syntax lets you define workflows on collections in a concise way that closely resembles widely recognized forms of mathematical notation. Build simple solutions in scenarios that require finding all combinations of items from a collection."
},
{
"title": "Applications of Immutability",
"medium": "2580266ef57b",
"summary": "Both built-in and user-defined data structures can be either mutable or immutable. This article explains why this distinction exists for built-in data structures and examines a use case in which you must define an immutable data structure of your own."
},
{
"title": "Guide to Publishing Packages",
"medium": "109dbbf41a77",
"summary": "This article is a step-by-step guide to assembling and publishing a small, open-source Python package; topics covered include directory structure, basic unit tests, basic continuous integration setup, and publication to a package repository."
}
];
</script>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Yanone+Kaffeesatz&family=Raleway:wght@200&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<style>
html { height:100vh; }
body { display:flex; flex-direction:column; min-height:100vh; padding:0px 0px 0px 0px; }
@media (min-width: 768px) { html { font-size: 16px; } }
a { color:#E7752E; }
a:hover { text-decoration:none; color:#000000; }
#header { min-height:160px; margin-top:132px; }
.space { margin-top:80px; }
.container { max-width:960px; }
.prompt {
padding-top:4px; padding-right:6px; letter-spacing:-4px;
font-family:'Yanone Kaffeesatz',sans-serif; font-size:66px; font-weight:normal; color:#E7752E;
}
.logo { float:left; transform: skew(-7deg, 0deg); font-family:'Ubuntu',sans-serif; font-size:40px; font-weight:bold; }
.logo > table { border-bottom:0px; }
.logo > table span { letter-spacing:-2px; }
.logo > table .domain { padding-bottom:4px; }
hr { margin:4px 0px 4px 0px; margin-left:76px; margin-right:196px; background-color:#EEEEEE; }
h5 { margin-right:196px; margin-left:76px; font-size:18px; font-weight:normal; font-style:italic; color:#999999; }
.links { float:right; padding-top:10px; font-size:35px; }
.links a { margin:0px 2px 0px 2px; }
.links a + a { margin:0px 0px 0px 2px; }
.card-deck .card { border:0px; min-width:220px; }
.card { min-width:350px !important; }
.card-header {
min-height:60px;
border-bottom:0px;
padding:2px 20px 5px 20px;
background-color:#FFFFFF;
line-height:24px;
font-family:'Ubuntu',sans-serif;
font-size:22px;
color:#E7752E;
}
table { height:100%; width:100%; border-bottom:1px solid #E7752E; }
table td { width:75%; padding-bottom:5px; vertical-align:bottom; }
table td + td { width:25%; padding-bottom:5px; vertical-align:bottom; text-align:right; }
table i { margin:0px 0px 0px 8px; font-size:24px; }
.card-body {
padding:2px 20px 2px 20px;
text-align:justify;
line-height:18px;
font-family:'Ubuntu',sans-serif;
font-size:14px;
}
#articles { margin-bottom:60px; }
footer { width:100%; margin:auto auto 0 auto; padding:16px 0px 16px 0px; background-color:#E7752E; color:#FFFFFF; }
footer a { color:#FFFFFF; }
footer a:hover { text-decoration:underline; color:#FFFFFF; }
footer .card-deck { margin-bottom:0px !important; }
footer .card { margin-bottom:0px !important; border:0px; background-color:#E7752E; }
footer .card-deck-copyright { height:26x !important; font-size:10px; }
footer .card-copyright { height:26px !important; padding:0px 16px 0px 16px; font-size:12px !important; }
footer .card-body-links { padding:8px 20px 0px 20px; }
footer .card-body-links-internal { float:left; }
footer .card-body-links-external { float:right; }
footer .link { margin:0px 25px 0px 0px; white-space: nowrap; font-size:14px; }
footer .icon { margin:0px 15px 0px 0px; font-size:20px; }
footer .icon-last { margin:0px 0px 0px 0px; font-size:18px; }
.noselect {
-webkit-touch-callout:none; /* iOS Safari */
-webkit-user-select:none; /* Safari */
-khtml-user-select:none; /* Konqueror HTML */
-moz-user-select:none; /* Old versions of Firefox */
-ms-user-select:none; /* Internet Explorer/Edge */
user-select:none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}
@media all and (max-width:900px) {
hr { margin-right:76px; }
h5 { margin-right:76px; }
}
@media all and (max-width:618px) {
#header { min-height:100px; height:100px; margin-top:50px; }
.space { display:none; }
hr { display:none; margin-right:0px; }
h5 { display:none; margin-right:0px; font-size:16px !important; }
#license-phrase { display:none; }
}
@media all and (max-width:400px) {
.prompt { display:none; }
.card { min-width:250px !important; }
}
@media all and (max-width:320px) {
.domain { font-size:32px; }
.title { font-size:18px; line-height:18px !important; }
}
</style>
</head>
<body onload="articles();">
<div id="header" class="container">
<div class="card-deck mb-3">
<div class="card mb-4">
<div class="card-body noselect">
<div class="logo">
<table><tr>
<td><div class="prompt">>>></div></td>
<td><div class="domain"><span>python</span>.<span>supply</span></div></td>
</tr></table>
</div>
<br/><br/><hr/>
<h5>
Learn foundational topics in computer science, programming, and software engineering using the Python programming language.
</h5>
</div>
</div>
</div>
</div>
<div class="space"></div>
<div class="container" id="articles"></div>
<footer>
<div class="container noselect">
<div class="card-deck mb-3">
<div class="card mb-4">
<div class="card-body card-body-links">
<div class="card-body-links-internal">
<span class="link"><span id="license-phrase">Made available under the </span><a href="http://opensource.org/licenses/mit-license.html">MIT License</a></span>
<span class="link"></span>
</div>
<div class="card-body-links-external">
<span class="icon"><a href="mailto:[email protected]"><i class="far fa-envelope"></i></a></span>
<span class="icon"><a href="https://github.com/python-supply"><i class="fab fa-github"></i></a></span>
<span class="icon-last"><a href="https://medium.com/python-supply"><i class="fab fa-medium"></i></a></span>
</div>
</div>
</div>
</div>
<div class="card-deck mb-3 card-deck-copyright">
<div class="card mb-4 card-copyright">
</div>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script>
function article(entry) {
var divCard = document.createElement("div");
var divCardHeader = document.createElement("div");
var divCardBody = document.createElement("div");
divCard.classList.add("card");
divCard.classList.add("mb-4");
divCardHeader.classList.add("card-header");
divCardBody.classList.add("card-body");
if (entry != null) {
var link = entry.title.replace(/,/g, "").replace(/ /g, "-").toLowerCase();
divCardHeader.innerHTML =
'<table><tr>' +
'<td>' +
'<a class="title" href="https://python.supply/' + link + '">' +
entry.title +
'</a>' +
'</td>' +
'<td>' +
'<a href="https://github.com/python-supply/' + link + '">' +
'<i class="fab fa-github"></i>' +
'</a>' +
'<a href="https://medium.com/python-supply/' + link + '-' + entry.medium + '">' +
'<i class="fab fa-medium"></i>' +
'</a>' +
'</td>' +
'</tr></table>';
divCardBody.innerHTML = entry.summary;
}
divCard.appendChild(divCardHeader);
divCard.appendChild(divCardBody);
return divCard;
}
function articles() {
var body = document.getElementsByTagName("body")[0];
for (var i = 0; i < articleData.length; i += 2) {
var divContainer = document.getElementById("articles");
var divCardDeck = document.createElement("div");
divCardDeck.classList.add("card-deck");
divCardDeck.classList.add("mb-3");
var divCardLeft = article(articleData[i]);
var divCardRight =
(i + 1 < articleData.length) ?
article(articleData[i + 1]) : article();
divCardDeck.appendChild(divCardLeft);
divCardDeck.appendChild(divCardRight);
divContainer.appendChild(divCardDeck);
}
}
</script>
</body>
</html>