Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
abikesa committed Sep 15, 2023
1 parent ece09b2 commit 18a7192
Show file tree
Hide file tree
Showing 175 changed files with 2,781 additions and 1,195 deletions.
237 changes: 236 additions & 1 deletion _sources/act_1/act_1_1/act_1_1_0/act_1_1_0_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,242 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# .\n",
"# \n",
"\n",
"# 65\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"tags": [
"hide-input"
]
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<!DOCTYPE html>\n",
"<html>\n",
"<head>\n",
" <style>\n",
" .expanded-info {\n",
" display: none;\n",
" }\n",
" span.expanded-word {\n",
" text-decoration: underline;\n",
" cursor: pointer;\n",
" }\n",
" </style>\n",
" <script>\n",
" function toggleExpand(elementId) {\n",
" var expandedInfo = document.getElementById(elementId);\n",
" if (expandedInfo.style.display === 'none' || expandedInfo.style.display === '') {\n",
" expandedInfo.style.display = 'block';\n",
" } else {\n",
" expandedInfo.style.display = 'none';\n",
" }\n",
" }\n",
" </script>\n",
" <script type=\"text/javascript\" async\n",
" src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML\">\n",
" </script>\n",
"</head>\n",
"<body>\n",
" <details>\n",
" <summary>1. Philosophy</summary>\n",
" (Data generating process) <br>\n",
" Agents - <i>F=ma</i>\n",
" <ul>\n",
" <li>gods</li>\n",
" <li>demigods</li>\n",
" <li>heroes</li>\n",
" <li>villains</li>\n",
" <li>mortals</li>\n",
" </ul>\n",
"\n",
" Verbs - <i>W=Fd</i>\n",
" <ul>\n",
" <li>create</li>\n",
" <li>shepherd</li>\n",
" <li>free</li>\n",
" <li>control</li>\n",
" <li>usurp</li>\n",
" </ul>\n",
"\n",
" Objects - <i>Credo</i>\n",
" <ul>\n",
" <li>cosmos</li>\n",
" <li>planets 🪐</li>\n",
" <li>life</li>\n",
" <li><span class=\"expanded-word\" onclick=\"toggleExpand('emotion')\">emotion</span>\n",
" <div id=\"emotion\" class=\"expanded-info\">\n",
" <ul>\n",
" <li>struggle/monumental</li>\n",
" <li>worship/antiquarian</li>\n",
" <li><span style=\"color:red;\">terror</span>/critical</li>\n",
" </ul>\n",
" </div>\n",
" </li>\n",
" <li>social</li>\n",
" </ul>\n",
" <i>(May the 4th be with you)</i> <br>\n",
" </details>\n",
"</body>\n",
"</html>\n"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from IPython.display import display, HTML # Updated import line\n",
"\n",
"html_code = '''\n",
"<!DOCTYPE html>\n",
"<html>\n",
"<head>\n",
" <style>\n",
" .expanded-info {\n",
" display: none;\n",
" }\n",
" span.expanded-word {\n",
" text-decoration: underline;\n",
" cursor: pointer;\n",
" }\n",
" </style>\n",
" <script>\n",
" function toggleExpand(elementId) {\n",
" var expandedInfo = document.getElementById(elementId);\n",
" if (expandedInfo.style.display === 'none' || expandedInfo.style.display === '') {\n",
" expandedInfo.style.display = 'block';\n",
" } else {\n",
" expandedInfo.style.display = 'none';\n",
" }\n",
" }\n",
" </script>\n",
" <script type=\"text/javascript\" async\n",
" src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML\">\n",
" </script>\n",
"</head>\n",
"<body>\n",
" <details>\n",
" <summary>1. Philosophy</summary>\n",
" (Data generating process) <br>\n",
" Agents - <i>F=ma</i>\n",
" <ul>\n",
" <li>gods</li>\n",
" <li>demigods</li>\n",
" <li>heroes</li>\n",
" <li>villains</li>\n",
" <li>mortals</li>\n",
" </ul>\n",
"\n",
" Verbs - <i>W=Fd</i>\n",
" <ul>\n",
" <li>create</li>\n",
" <li>shepherd</li>\n",
" <li>free</li>\n",
" <li>control</li>\n",
" <li>usurp</li>\n",
" </ul>\n",
"\n",
" Objects - <i>Credo</i>\n",
" <ul>\n",
" <li>cosmos</li>\n",
" <li>planets 🪐</li>\n",
" <li>life</li>\n",
" <li><span class=\"expanded-word\" onclick=\"toggleExpand('emotion')\">emotion</span>\n",
" <div id=\"emotion\" class=\"expanded-info\">\n",
" <ul>\n",
" <li>struggle/monumental</li>\n",
" <li>worship/antiquarian</li>\n",
" <li><span style=\"color:red;\">terror</span>/critical</li>\n",
" </ul>\n",
" </div>\n",
" </li>\n",
" <li>social</li>\n",
" </ul>\n",
" <i>(May the 4th be with you)</i> <br>\n",
" </details>\n",
"</body>\n",
"</html>\n",
"'''\n",
"\n",
"display(HTML(html_code))\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2. Knowledge\n",
"3. Error\n",
"4. Variance/Bias\n",
"5. Info/Control\n",
"\n",
"---\n",
"\n",
"<span style=\"color:red;\">Culture</Span> | Scare-brained\n",
"\n",
"**How fear has shaped human affairs**\n",
"\n",
"A new history argues that power depends on frightening people\n",
"\n",
"![](https://www.economist.com/cdn-cgi/image/width=1424,quality=80,format=auto/content-assets/images/20230916_CUD001.jpg)\n",
"\n",
"image: anthony gerace\n",
"\n",
"Sep 9th 2023\n",
"\n",
"---\n",
"\n",
"Listen to this story. Enjoy more audio and podcasts on iOS or Android. \n",
"\n",
"<audio class=\"react-audio-player \" controls=\"\" id=\"audio-player\" preload=\"none\" src=\"https://www.economist.com/media-assets/audio/075%20Culture%20-%20Fear_s%20past%20and%20future-a5b60c92b0bda3bc5616476e857e2780.mp3\" title=\"How fear has shaped human affairs\" controlslist=\"nodownload\"></audio>\n",
"\n",
"---\n",
"\n",
"Fear: An Alternative History of the World. By Robert Peckham. Profile Books; 448 pages; £25\n",
"\n",
"\n",
"One of the bestselling books of all time was about witches. It was not a cheerful romp like the Harry Potter novels. Instead, it was a serious instruction manual, explaining how to identify, capture, torture confessions from—and eventually kill—Satan’s handmaidens. Published in 1486, “Malleus Maleficarum” (“Hammer of Witches”) reputedly sold more copies over the next two centuries than any book bar the Bible. \n",
"\n",
"As Robert Peckham, a fellow at the Royal Historical Society in London, writes in “Fear: An Alternative History of the World”, anxiety about witches sprang from ignorance. Knowing nothing of microbes, people guessed that misfortunes such as disease were caused by magic. Yet their fear could be manipulated for political purposes. Christendom was split in the 16th century, with the pope and various Protestant potentates vying for control. Exterminating witches was a handy way for an earthly ruler to signal which side he was on: God’s, not the Devil’s. \n",
"\n",
"Fear is a primal, necessary emotion. Mr Peckham calls it “a neurobiological process to keep us alive”. If our ancestors had not feared cliff-edges or sabre-toothed tigers, we might not be here today. The flipside is that, since humans are a communicative, imaginative species, fear can be conjured out of whispers. His book does not quite live up to its ambitious subtitle, but it illuminates the many ways in which fear has shaped human behaviour over the past [700 years](https://www.gutenberg.org/files/38226/38226-h/38226-h.htm#v05_chapter5), from which readers can draw lessons for the present. \n",
"\n",
"The main one is: “Power depends on fear.” Mr Peckham argues that the turmoil of the Reformation and Counter-Reformation stemmed partly from the Catholic church’s loss of its “monopoly on fear” in western Europe. For a thousand years it had convinced people that it alone held the keys to the afterlife. It could turn people’s fear of eternal torment into cash by selling indulgences. One peddler of these “get-out-of-purgatory” certificates, Johann Tetzel, used to frighten congregations into paying up “by conjuring visions of their dead parents wailing for mercy” while being tortured by demons. \n",
"\n",
"When Martin Luther rebelled against such abuses, many people were no doubt swayed by his theological arguments. But an additional incentive for the kings who declared their realms Protestant was that they could then shake off the pope’s temporal authority and wield some of his awesome tools to support their own states.\n",
"Much of this book was written during the covid-19 pandemic, so the author naturally ponders the fear of infection—and its manipulation by the powerful. When the Black Death struck Europe, rumours spread that unpopular minorities, such as “Jews, Muslims, paupers, lepers and foreigners”, might be “malevolent carriers of contagion”. Horrific persecution followed. \n",
"\n",
"Terrified of the social unrest stirred up by the plague, the ruling class was happy to direct popular rage towards targets other than themselves. Some had other motives, too. The bishop of Strasbourg, who had 2,000 Jews burned to death one day in 1349, owed huge sums to Jewish moneylenders. (Conspiracy theories about Jews persist today, many of them directed at the Rothschilds) \n",
"\n",
"Covid was less awful than the Black Death. Medicine has advanced over the centuries, but human nature has changed rather less. Fear of the coronavirus seeded all manner of conspiracy theories, and many governments took advantage of pandemic panic to suppress civil liberties. While living in Hong Kong, Mr Peckham observed first-hand how the Chinese Communist Party used the virus as an excuse to ban the pro-democracy protests that had rocked the place in 2019-20. \n",
"\n",
"The book explores how easy it is for bold liars to fan terror. As Hermann Göring, Adolf Hitler’s air chief, summarised: “All you have to do is tell [the people] they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same way in any country.” The Nazis also promoted environmental alarmism, claiming that a looming global food shortage justified invading neighbouring countries. \n",
"\n",
"One of the best antidotes to fear is humour. Luther used a new form of mass communication—the printing press—to mock the pope. Salacious cartoons depicted Rome as a brothel, cardinals emerging from the Devil’s backside and the pope astride a pig. Laughter can assuage fear and puncture authority. \n",
"\n",
"Small wonder fearmongers try to kill satirists. Sir Salman Rushdie gets only a passing mention but deserves more. In 1988 he published a novel that satirised many figures, including the Ayatollah Khomeini, Iran’s despot. Khomeini urged Muslims to murder the author, citing the book’s allegedly blasphemous depiction of the Prophet Muhammad. Last year a zealot in New York stabbed Sir Salman in the eye. \n",
"\n",
"Khomeini died in 1989, but the terror he stoked lives on. His immediate motive was probably to bolster support for his joyless regime. That seems to have worked: it still misrules Iran. But the fatwa had global consequences, making clear that the anti-blasphemy laws of a reactionary theocracy could be enforced by volunteer assassins anywhere on the planet. \n",
"\n",
"In liberal countries writers, artists and comedians are now scared to discuss the Prophet, let alone lampoon him. In many Islamic countries, the assassin’s veto hangs over wide areas of intellectual life: freewheeling debate on the role faith plays in politics is almost impossible. Thus one long-bearded, long-buried Iranian fearmonger continues to obstruct the progress of a quarter of humanity. \n",
"\n",
"There are two compelling reasons to read this book. First, in a depressing number of places, including China, India and Russia, governments are ramping up their use of fear to keep citizens in line. Second, people’s memories of how such tactics have worked in the past are worryingly hazy. In a poll Mr Peckham cites, almost half of young Russians were unaware of Stalin’s reign of terror. Now that’s scary. <span style=\"color:red;\">■</span>\n",
" \n",
"For more on the latest books, films, tv shows, albums and controversies, sign up to Plot Twist, our weekly subscriber-only newsletter \n",
" \n",
"This article appeared in the Culture section of the print edition under the headline \"Scare-brained\" \n",
"\n"
]
}
Expand Down
56 changes: 55 additions & 1 deletion _sources/act_1/act_1_1/act_1_1_0/act_1_1_0_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,61 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# .\n",
"# \n",
"\n",
"# 66\n",
"\n",
"The Agent-Verb-Object (AVO) structure is not just confined to natural languages; it can also be observed in programming to some extent, although not in the same way as in natural language sentences. Let's delve into how AVO applies to both types of languages:\n",
"\n",
"*Hey, HTML: could you style \"Culture\" for me?* \n",
"\n",
"```html\n",
"<span style=\"color:red;\">Culture</span>\n",
"```\n",
"\n",
"This will change the color of the word \"Culture\" to red. You can replace `red` with any other color code or name according to your needs. \n",
"\n",
"**Natural Language**\n",
"\n",
"Natural languages like English often use the Subject-Verb-Object (SVO) structure, which is a special case of the AVO model. For instance, \"The cat (Agent) catches (Verb) the mouse (Object).\"\n",
"\n",
"**Programming Language**\n",
"\n",
"In programming languages, the AVO structure can be thought of more abstractly:\n",
"\n",
"1. **Agent**: The object or variable that will perform an action.\n",
"2. **Verb**: The method or function that specifies what action to take.\n",
"3. **Object**: The parameter or argument that the action is performed on.\n",
"\n",
"Here's an example in Python:\n",
"\n",
"```python\n",
"list.append(item)\n",
"```\n",
"\n",
"- **Agent**: `list`\n",
"- **Verb**: `append`\n",
"- **Object**: `item`\n",
"\n",
"Or in JavaScript, using the DOM:\n",
"\n",
"```javascript\n",
"document.getElementById('myID')\n",
"```\n",
"\n",
"- **Agent**: `document`\n",
"- **Verb**: `getElementById`\n",
"- **Object**: `'myID'`\n",
"\n",
"**Combined Example (Natural + Programming)**\n",
"\n",
"Consider a research project that aims to analyze natural language text to identify the most commonly used AVO structures. You could use Python's Natural Language Toolkit (NLTK) to parse sentences and identify AVO patterns:\n",
"\n",
"- **Agent**: NLTK library\n",
"- **Verb**: Parse\n",
"- **Object**: Sentences from a text corpus\n",
"\n",
"Understanding this structure helps not only in breaking down how sentences are formed or commands are executed but also in designing better algorithms for natural language processing or more intuitive programming languages and APIs. Given your multidisciplinary interests, this might be an avenue for research, possibly funded through an NSF grant focused on computational linguistics and human-computer interaction.\n",
"\n"
]
}
Expand Down
20 changes: 13 additions & 7 deletions act_0/act_0_0/act_0_0_0/act_0_0_0_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,19 @@
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_2.html"></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_3.html"></a></li>

<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_4.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_5.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_6.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_7.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_1.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_2.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_3.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_4.html"></a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_5.html"></a></li>

<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_6.html"></a></li>

<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_0/act_1_0_1/act_1_0_1_7.html"></a></li>

<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_1.html"></a></li>

<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_2.html"></a></li>

<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_3.html"></a></li>

<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_4.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_5.html">.</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../act_1/act_1_1/act_1_1_0/act_1_1_0_6.html">.</a></li>
Expand Down
Loading

0 comments on commit 18a7192

Please sign in to comment.