Create _ext/ and _templates/ subdirectories.
Move edit_on_github.py into the _ext/ subdirectory.
Move sourcelink.html into the _templates/ subdirectory.
Add the following after the import sys, os line
| #!/usr/bin/env bash | |
| # memusg -- Measure memory usage of processes | |
| # Usage: memusg COMMAND [ARGS]... | |
| # | |
| # Author: Jaeho Shin <[email protected]> | |
| # Created: 2010-08-16 | |
| ############################################################################ | |
| # Copyright 2010 Jaeho Shin. # | |
| # # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); # |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@mbostock/epicyclic-gearing |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| client.py | |
| Based heavily on: | |
| - https://github.com/mtah/python-websocket/blob/master/examples/echo.py | |
| - http://stackoverflow.com/a/7586302/316044 | |
| Created by Drew Harry on 2011-11-28. |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| # Xcode 4.3.3 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix | |
| # Xcode 4.3.2 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix |
| --- /usr/share/texmf-dist/bibtex/bst/IEEEtran/IEEEtranN.bst 2008-09-30 19:18:36.000000000 -0400 | |
| +++ IEEEtranNdoi.bst 2012-08-16 16:41:34.000000000 -0400 | |
| @@ -146,6 +146,10 @@ | |
| FUNCTION {default.name.latex.cmd}{ "" } | |
| +% The default DOI prefix. | |
| +FUNCTION {default.name.doi.prefix}{ "" } | |
| + | |
| + |
| Acquire::http::Pipeline-Depth "0"; | |
| Acquire::http::No-Cache=True; | |
| Acquire::BrokenProxy=true; |
| # this forces dpkg not to call sync() after package extraction and speeds up install | |
| RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup | |
| # we don't need and apt cache in a container | |
| RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache |
| docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |