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
| #!/bin/sh | |
| # This script will setup Evm (Emacs Version Manager) and Cask on | |
| # Travis to use for Emacs Lisp testing. | |
| # | |
| # In .travis.yml, add this: | |
| # | |
| # - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh | |
| # | |
| # Emacs 24.3 is installed in the above script because Cask requires |
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 timeit | |
| """ | |
| Looking at New York Times homepage: | |
| Common classes: | |
| [ | |
| ('story', 147), | |
| ('story-heading', 145), | |
| ('theme-summary', 64), |
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 timeit | |
| """ | |
| Looking at New York Times homepage: | |
| Common classes: | |
| [ | |
| ('story', 147), | |
| ('story-heading', 145), | |
| ('theme-summary', 64), |
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
| public_self = {} | |
| private_self = {foo=123, bar=345} | |
| function is_private_name(name) | |
| return name.sub(1, 1) == "_" | |
| end | |
| public_mt = { |
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
| 16/08/09 07:52:23 DEBUG ClosureCleaner: +++ Cleaning closure <function1> (org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$$anonfun$22) +++ | |
| 16/08/09 07:52:23 DEBUG ClosureCleaner: + declared fields: 5 | |
| 16/08/09 07:52:23 DEBUG ClosureCleaner: public static final long org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$$anonfun$22.serialVersionUID | |
| 16/08/09 07:52:23 DEBUG ClosureCleaner: private final boolean org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$$anonfun$22.assumeBinaryIsString$1 | |
| 16/08/09 07:52:23 DEBUG ClosureCleaner: private final boolean org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$$anonfun$22.assumeInt96IsTimestamp$1 | |
| 16/08/09 07:52:23 DEBUG ClosureCleaner: private final boolean org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$$anonfun$22.writeLegacyParquetFormat$1 | |
| 16/08/09 07:52:23 DEBUG ClosureCleaner: private final org.apache.spark.util.SerializableConfiguration org.apa |
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 python2 | |
| import sqlalchemy as sa | |
| import random | |
| import multiprocessing | |
| import time | |
| from os import getppid | |
| import logging |
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
| In [1]: %cpaste | |
| Pasting code; enter '--' alone on the line to stop or use Ctrl-D. | |
| :class Wrapper(object): | |
| : def __init__(self, val): | |
| : self.val = val | |
| : | |
| : def __repr__(self): | |
| : return '{}({!r})'.format(type(self).__name__, self.val) | |
| : | |
| : def __add__(self, other): |
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
| uwsgi \ | |
| --http :9090 \ | |
| --wsgi-file test_uwsgi.py \ | |
| --log-format='%(addr) %(username) [%(ltime)] "%(method) %(uri) %(proto)" %(status) %(rsize) "%(referer)" "%(uagent)" %(msecs)' \ | |
| | sed 's/^/###OUT:/' |
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
| immerrr@mmrhost:~$ mkdir magit-test && cd magit-test | |
| immerrr@mmrhost:~/magit-test$ git init | |
| Initialized empty Git repository in /home/immerrr/magit-test/.git/ | |
| immerrr@mmrhost:~/magit-test$ echo abc > foobar | |
| immerrr@mmrhost:~/magit-test$ git add --all | |
| immerrr@mmrhost:~/magit-test$ git ci -m 'initial commit' | |
| [master (root-commit) ce968e2] initial commit | |
| 1 file changed, 1 insertion(+) | |
| create mode 100644 foobar | |
| immerrr@mmrhost:~/magit-test$ git checkout -B foobar-rm |
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
| diff --git a/_pytest/doctest.py b/_pytest/doctest.py | |
| index fd4a247..a4127d0 100644 | |
| --- a/_pytest/doctest.py | |
| +++ b/_pytest/doctest.py | |
| @@ -199,6 +199,7 @@ def _setup_fixtures(doctest_item): | |
| fm = doctest_item.session._fixturemanager | |
| doctest_item._fixtureinfo = fm.getfixtureinfo(node=doctest_item, func=func, | |
| cls=None, funcargs=False) | |
| + doctest_item.obj = func | |
| fixture_request = FixtureRequest(doctest_item) |
NewerOlder