This file contains hidden or 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
const protocol = document.location.protocol | |
const host = document.location.host | |
const search = document.location.search | |
... | |
const { protocol, host, search } = document.location |
This file contains hidden or 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
import pandas | |
people = [['Nala', 'Cape Town'], ['Catherine', 'Johannesburg']] | |
pandas.DataFrame(people) | |
# => 0 1 | |
# 0 Nala Cape Town | |
# 1 Catherine Johannesburg | |
pandas.DataFrame(people, columns = ['Name', 'City']) |
This file contains hidden or 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
body { | |
--text-color: #111; | |
--background-color: #fff; | |
--primary-color: #fc0; | |
} | |
body { | |
color: var(--text-color); | |
background: var(--background-color); | |
} |
This file contains hidden or 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
.is-max-width-10em { | |
max-width: 10em; | |
} | |
.is-max-width-20em { | |
max-width: 20em; | |
} | |
.is-max-width-30em { | |
max-width: 30em; |
This file contains hidden or 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
<blockquote> | |
<p> | |
This is the end, beautiful friend<br> | |
This is the end, my only friend<br> | |
The end<br> | |
It hurts to set you free<br> | |
</p> | |
<footer> | |
~ | |
<cite> |
This file contains hidden or 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 nltk.tokenize.punkt import PunktSentenceTokenizer, PunktParameters | |
text = 'Sgt. Maj. A. Grinston found approx. 2.2 miles up a creek on Mt. Toohigh.' | |
PunktSentenceTokenizer().tokenize(text) | |
#=> ['Sgt.', 'Maj.', 'A. Grinston found approx.', '2.2 miles up a creek on Mt.', 'Toohigh.'] | |
punkt_param = PunktParameters() | |
punkt_param.abbrev_types = set(['sgt', 'maj', 'mt', 'approx']) | |
tokenizer = PunktSentenceTokenizer(punkt_param) |
This file contains hidden or 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
import spacy | |
from spacy.attrs import ORTH, LEMMA | |
text = 'Sgt. Maj. A. Grinston found approx. 2.2 miles up a creek on Mt. Toohigh.' | |
nlp = spacy.load('en_core_web_lg') | |
print([t.text for t in nlp(text).sents]) | |
#=> ['Sgt.', 'Maj.', 'A. Grinston found approx.', '2.2 miles up a creek on Mt. Toohigh.'] |
This file contains hidden or 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
# Pipfile (TOML) | |
[build-system] | |
requires = ["cython"] | |
... | |
[packages] | |
... | |
benepar = "==0.1.2" | |
... |
This file contains hidden or 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
# .env | |
ANIMAL=dog | |
COLOUR=brown | |
# docker-compose.yml | |
... | |
services: | |
web: | |
... | |
build: |
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
... | |
annotations: | |
... | |
alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:REGION:ACCOUNT_ID:certificate/CERTIFICATE_ID" | |
... | |
spec: | |
... |