Skip to content

Instantly share code, notes, and snippets.

@unendin
unendin / HTML skeleton
Created March 19, 2011 00:28
Minimal valid, secure, screenreader-accessible and stylable-in-IE HTML5 page
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>blah</title>
</head>
<body>
</body>
</html>
@unendin
unendin / ppdb_re.py
Last active August 15, 2017 16:38
Regular expression to convert ppdb entries into python dicts
'''
Purpose-built regular expression to convert ppdb v2.0 entries into dicts
PPDB is an automatically extracted database containing millions of paraphrases
http://paraphrase.org/#/download
Code uses enhanced regex module for convenience of groupdict
https://pypi.python.org/pypi/regex/
Pattern matches every line in the xxxl size all English ppdb pack.
@unendin
unendin / gist:7a34cf5272f559f05302d057388f5396
Last active September 13, 2019 00:32
nvidia apex build output
Step 5/8 : RUN SHA=ToUcHMe git clone --single-branch --branch cross_compilation_fix https://github.com/mcarilli/apex.git
---> Running in 14997fff7698
Cloning into 'apex'...
Removing intermediate container 14997fff7698
---> cc4ed4b7a7aa
Step 6/8 : RUN pip3.7 install -v --upgrade --upgrade-strategy=eager --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" apex/
---> Running in cd31ee285467
Created temporary directory: /tmp/pip-ephem-wheel-cache-j3xu4_ej
Created temporary directory: /tmp/pip-req-tracker-l6tc9h5s
Created requirements tracker '/tmp/pip-req-tracker-l6tc9h5s'