This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>disc</h1> | |
<ul> | |
<li>Item</li> | |
<li>Item</li> | |
<li>Item</li> | |
</ul> | |
<h1>circle</h1> | |
<ul> | |
<li>Item</li> | |
<li>Item</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Styling hr elements */ | |
/* ref: http://html5doctor.com/small-hr-element/ */ | |
body {background: #ddd;} | |
h1 {font-weight: normal; font-size: 1.5em;} | |
ol {margin-top: 5em;} | |
hr {margin: 1.5em 0;} | |
hr:nth-child(2) { | |
border: 0; | |
border-top: 1px solid #999; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Line-breaks suiting auto-p in WordPress: --> | |
Paragraph with a footnote<a id="a1" href="#f1"><sup>[1]</sup></a> and more text afterwards. | |
Another paragraph with another footnote<a id="a2" href="#f2"><sup>[2]</sup></a> and more text afterwards. | |
<!-- At the end of all paragraphs: --> | |
<footer class="footnotes"> | |
<a id="f1" href="#a1">[1]</a> Footnote #1 here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Responsive Table</title> | |
<meta charset="UTF-8"> | |
<meta name="description" content="How to create a responsive table"> | |
<meta name="keywords" content="HTML,CSS"> | |
<meta name="author" content="Martine Dowden"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Calendar of Police Killings</title> | |
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet"> | |
<style> | |
body { font-family: 'Fira Sans'; text-align: center; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from json import load, JSONEncoder | |
from optparse import OptionParser | |
from re import compile | |
float_pat = compile(r'^-?\d+\.\d+(e-?\d+)?$') | |
charfloat_pat = compile(r'^[\[,\,]-?\d+\.\d+(e-?\d+)?$') | |
parser = OptionParser(usage="""%prog [options] | |
Group multiple GeoJSON files into one output file. |
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 10 columns, instead of 7 in line 9.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Report Date,Date VDH Notified,Status,Locality,FIPS,Facility,Facility Type,Cases,Deaths,Active | |
12/18/2020,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
12/25/2020,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
01/01/2021,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
01/08/2021,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
01/15/2021,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
01/22/2021,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
01/29/2021,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
02/05/2021,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult Daycare Program,27,0,0 | |
02/12/2021,10/30/2020,Outbreak Closed,Henrico,51087,Family Life Services LLC,Adult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
docx_form = 'form_example/word/document.xml' | |
infile = open(docx_form, 'r') | |
contents = infile.read() | |
soup = BeautifulSoup(contents, 'xml') |
NewerOlder