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
<details> | |
<summary>(sleep 30; exit 17)</summary> | |
``` | |
``` | |
<details> | |
<summary>ls -l</summary> |
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 gc | |
import threading | |
def thread_main(): | |
return 1 | |
def work(): | |
ts = [threading.Thread(target=thread_main) for _ in range(3)] | |
for t in ts: | |
t.start() |
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
Welcome! | |
Tables: | |
1: Beginning Learners | |
2: Machine Learning | |
3: etc. |
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 coverage.debug import NoDebugging | |
from coverage.sqldata import SqliteDb | |
db = SqliteDb("cov.db", NoDebugging()) | |
with db: | |
db.executescript("CREATE TABLE coverage_schema (\n -- One row, to record the version of the schema in this db.\n version integer\n);\n\nCREATE TABLE meta (\n -- Key-value pairs, to record metadata about the data\n key text,\n value text,\n unique (key)\n -- Keys:\n -- 'has_arcs' boolean -- Is this data recording branches?\n -- 'sys_argv' text -- The coverage command line that recorded the data.\n -- 'version' text -- The version of coverage.py that made the file.\n -- 'when' text -- Datetime when the file was created.\n);\n\nCREATE TABLE file (\n -- A row per file measured.\n id integer primary key,\n path text,\n unique (path)\n);\n\nCREATE TABLE context (\n -- A row per context measured.\n id integer primary key,\n context text,\n unique (context)\n);\n\nCREATE TABLE line_bits (\n - |
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
Verifying my Blockstack ID is secured with the address 1BiZLepEsXvm4QCUadQQGNt6W9FxGhA8UN https://explorer.blockstack.org/address/1BiZLepEsXvm4QCUadQQGNt6W9FxGhA8UN |
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
cwd is now '/home/jenkins/workspace/edx-platform-test-subset' | |
New process: executable: /home/jenkins/edx-venv/bin/python | |
New process: cmd: /home/jenkins/edx-venv/lib/python2.7/site-packages/pytest.py --junitxml=/home/jenkins/workspace/edx-platform-test-subset/reports/common/lib/capa/shard_3/nosetests.xml --verbose -s -p no:randomly -a not shard common/lib/capa --cov --cov-report= | |
New process: pid: 3340, parent pid: 3339 | |
00003340 0000 0000 __init__(source=None, config_file='.coveragerc', branch=None) | |
00003340 0000 0001 erase() | |
-- config ---------------------------------------------------- | |
_include: None | |
_omit: None | |
attempted_config_files: .coveragerc |
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
# For Drawbot | |
import os | |
canvas_h = 300 | |
canvas_w = canvas_h * 2 | |
n_frames = 40 | |
grid = 10 | |
def new_page(): | |
newPage(canvas_w, canvas_h) |
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
#!/usr/bin/env python3.6 | |
# | |
# For the full story: http://nedbatchelder.com/blog/201612/finding_test_coupling.html | |
# | |
import re | |
def read_output(filename): | |
failed = False | |
test_names = [] |
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
################### | |
Something Something | |
################### | |
What is this? | |
* Some text | |
* Some more text. | |
`A link`__ |
NewerOlder