Skip to content

Commit

Permalink
double checks
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhumber committed May 10, 2021
1 parent d49bacd commit 9808e62
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 28 deletions.
38 changes: 19 additions & 19 deletions notebooks/1-pesky.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -63,7 +63,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -80,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -97,7 +97,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -108,7 +108,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand All @@ -117,7 +117,7 @@
"'ata-tip=\"Average points in simulated seasons\">PTS</th>\\n </tr>\\n </thead>\\n <tbody>\\n <tr class=\"no_ranker partial_table\">\\n <td colspan=\"18\"><strong>Atlantic Division</strong></td>\\n </tr>\\n <tr>\\n <th scope=\"row\" class=\"right \" data-stat=\"ranker\" csk=\"1\">1</th>\\n <td class=\"left \" data-stat=\"team_name\" csk=\"111.6\">Boston Kodiaks</td>\\n <td class=\"right \" data-stat=\"wins_avg\">48.5</td>\\n <td class=\"right \" data-stat=\"losses_avg\">18.8</td>\\n <td class=\"right \" data-stat=\"losses_ot_avg\">14.7</td>\\n <td class=\"right \" data-stat=\"points_avg\">111.6</td>\\n </tr>\\n <tr>\\n <th scope=\"row\" class=\"right \" data-stat=\"ranker\" csk=\"2\">2</th>\\n <td class=\"left \" data-stat=\"team_name\" csk=\"108.1\">Tampa Bay Thunder</td>\\n <td class=\"right \" data-stat=\"wins_avg\">50.2</td>\\n <td class=\"right \" data-stat=\"losses_avg\">24.1</td>\\n <td class=\"right '"
]
},
"execution_count": 10,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -128,7 +128,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -137,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -147,7 +147,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -338,7 +338,7 @@
"4 NaN NaN "
]
},
"execution_count": 13,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -349,7 +349,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -363,7 +363,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 14,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -430,7 +430,7 @@
"9 Detroit Carmine Feathers 21.7"
]
},
"execution_count": 15,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -448,7 +448,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -458,7 +458,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -469,7 +469,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -481,7 +481,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -492,7 +492,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -645,7 +645,7 @@
"57 0 "
]
},
"execution_count": 20,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
2 changes: 1 addition & 1 deletion notebooks/2-scheduling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand Down
4 changes: 2 additions & 2 deletions notebooks/3-multimedia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
{
"data": {
"text/plain": [
"('media/orconomics.mp3', <http.client.HTTPMessage at 0x7f84ae69afa0>)"
"('media/orconomics.mp3', <http.client.HTTPMessage at 0x7fda4689f0d0>)"
]
},
"execution_count": 5,
Expand All @@ -82,7 +82,7 @@
{
"data": {
"text/plain": [
"('media/early.mp4', <http.client.HTTPMessage at 0x7f84ae6bee20>)"
"('media/early.mp4', <http.client.HTTPMessage at 0x7fda468c2070>)"
]
},
"execution_count": 6,
Expand Down
42 changes: 36 additions & 6 deletions notebooks/4-ocr.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -64,16 +64,27 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'Preface\\n\\nSamuel Zemurray, who led the United Fruit Company for\\nroughly twenty-five years, from the early 1930s to the\\nmid-’50s, was an emblematic figure of the American\\nCentury—those decades that saw the United States grow\\nfrom a regional power into an empire. In Sam the Banana\\nMan, as Zemurray was known to friends and enemies alike,\\nthe story of the age is collapsed to the scale of a single life:\\nthe ascent from humble origins, the promise and ambition,\\nthe sudden, dazzling, disorienting wealth, the corruption,\\nbrutality, propaganda, wars, and overreach—and the\\ngrinding late-day melancholy.\\n\\nWhen he arrived in America in 1891 at age fourteen,\\nZemutray was tall, gangly, and penniless. When he died in\\nthe grandest house in New Orleans sixty-nine years later,\\nhe was among the richest, most powerful men in the world.\\nIn between, he worked as a fruit peddler, a banana hauler, a\\ndockside hustler, and the owner of plantations on the\\nCentral American isthmus. He battled and conquered\\nUnited F'"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"text[:1000]"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -84,9 +95,28 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tPreface Samuel Zemurray, who led the United Fruit Company for roughly twenty-five years, from the early 1930s to the mid-’50s, was an emblematic figure of the American Century—those decades that saw the United States grow from a regional power into an empire. In Sam the Banana Man, as Zemurray was known to friends and enemies alike, the story of the age is collapsed to the scale of a single life: the ascent from humble origins, the promise and ambition, the sudden, dazzling, disorienting wealth, the corruption, brutality, propaganda, wars, and overreach—and the grinding late-day melancholy.\n",
"\t When he arrived in America in 1891 at age fourteen, Zemutray was tall, gangly, and penniless. When he died in the grandest house in New Orleans sixty-nine years later, he was among the richest, most powerful men in the world.\n",
"\tIn between, he worked as a fruit peddler, a banana hauler, a dockside hustler, and the owner of plantations on the Central American isthmus. He battled and conquered United Fruit, which was one of the first truly global corporations. United Fruit, in its day, was as ubiquitous as Google and as feared as Halliburton. More than a business, it was the spirit of the nation abroad, akin to the Dutch East \f",
"\tIndia Company, its policies backed by the threat of US.\n",
"\tgunboats. As the president of United Fruit, Zemurray became the most important man in Central America—he could change the course of history with a phone call—a symbol of the best and worst of the United States: proof that America is the land of opportunity, but also a classic example of the Ugly American, the corporate pirate who treats foreign nations as the backdrop for his adventures. In South America, when people shouted “Yankee, go home!”\n",
"\tit was men like Samuel Zemurray they had in mind.\n",
"\t * OK OO I first learned about Zemurray as a sophomore at Tulane University. The Banana Man had been a generous donor to Tulane, and many of the buildings on campus are named for him or members of his family; the university president lives in the mansion on St. Charles Avenue where Zemutray spent some of his best years. I was transfixed by the story the moment I heard it in a seminar taught by Joseph Cohen, a relation to me in spirit alone. Unlike lectures in other classes, this was an epic, gaudy in character and incident, filled with mercenary soldiers and dirty wars, financial battles and the sort of political shenanigans familiar from the smoky back rooms of my hometown, Chicago.\n",
"\f",
"\tZemutrray’s life is a parable of the American dream—not history as recorded in textbooks, but the authentic cask- strength version, a subterranean saga of kickbacks, overthrows, and secret deals: the world as it really works.\n",
"\tThis story can shock and infuriate us, and it does. But I found it invigorating, too. It told me that the life of the nation was written not only by speech-making grandees in funny hats but also by street-corner boys, immigrant strivers, crazed and driven, some with one good idea, some with thousands, willing to go to the ends of the earth to make their vision real. It meant anyone could write a chapter in that book, be part of the story, vanish into the jungle and reemerge as a figure of lore. Of course, you would not make the mistakes Zemurray made. You would harm no one, and disturb nothing, and never pay off, and never kick back, and never compromise or lose your bearings. You would do it in a new sin-free way, win-win, which of course is also part of the American character, perhaps the most defining part: the notion that, if we were only given one more chance, we could finally get it right.\n",
"\t It’s what people mean when they speak of American exceptionalism: unlike the Europeans, we do not yet know you can’t be both powerful and righteous. So we set out again and again, convinced that this time we’ll avoid the mistakes of the previous generations. It’s this kind of confidence that gives a people the strength to rule abroad; \f",
"\n"
]
}
],
"source": [
"print(text)"
]
Expand Down
Binary file modified presentation.key
Binary file not shown.
Binary file removed presentation.pdf
Binary file not shown.

0 comments on commit 9808e62

Please sign in to comment.