Skip to content

Instantly share code, notes, and snippets.

View cpennington's full-sized avatar

Calen Pennington cpennington

View GitHub Profile
@cpennington
cpennington / gist:f640469faa4dc9d4477d9888002eebca
Last active February 10, 2020 18:25
Goblin Spy Replay Downloader Bookmarklet

Create a new bookmark in your bookmark toolbar. Set the name to "Goblin Spy Replays". Set the bookmark location to:

javascript:(function() {
div = document.createElement('div');
div.setAttribute('style', 'position: absolute; right: 10px; top: 10px; background: #fff; color: #000');
div.setAttribute('id', 'replays');
ul = document.createElement('ul');
div.appendChild(ul);
existing = document.getElementById('replays');
ghcid --verbose 28s  Tue 30 Jul 2019 06:57:20 AM EDT
Loading stack ghci yomi-engine:lib yomi-engine:test-engine ...
%STDERR: Using main module: 1. Package `yomi-engine' component test:test-engine with main-is file: /home/cpennington/personal/yomi-engine/test/Main.hs
%STDOUT2: Using main module: 1. Package `yomi-engine' component test:test-engine with main-is file: /home/cpennington/personal/yomi-engine/test/Main.hs
Using main module: 1. Package `yomi-engine' component test:test-engine with main-is file: /home/cpennington/personal/yomi-engine/test/Main.hs
%STDERR: yomi-engine-0.1.0.0: initial-build-steps (lib + exe)
%STDOUT2: yomi-engine-0.1.0.0: initial-build-steps (lib + exe)
yomi-engine-0.1.0.0: initial-build-steps (lib + exe)
%STDERR: Configuring GHCi with the following packages: yomi-engine
%STDOUT2: Configuring GHCi with the following packages: yomi-engine
class Game a where
type PlayerState a :: *
type Action a :: *
type Player a :: *
type M a :: * -> *
players :: M a [Player a]
determine :: PlayerState a -> M a ()
currentState :: M a (GameState a)
playAction :: Player a -> Action a -> M a ()
from cpython.pystate cimport PyThreadState_Get
from cpython.object cimport PyObject
ctypedef struct PyFrameObject:
PyObject f_trace
ctypedef PyObject* (*_PyFrameEvalFunction)(PyFrameObject *, int)
ctypedef struct PyThreadState:
PyInterpreterState *interp
### test_pylint/a.py
import freezegun
def test_course_closed(self):
with freezegun.freeze_time('2015-01-02'):
pass
### test_pylint/b.py
import model_utils.fields
### test_pylint/a.py
import freezegun
def test_course_closed(self):
with freezegun.freeze_time('2015-01-02'):
pass
### test_pylint/b.py
import model_utils.fields
Traceback (most recent call last):
File "/home/cpennington/.virtualenvs/edx-platform/bin/pylint", line 11, in <module>
sys.exit(run_pylint())
File "/home/cpennington/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/pylint/__init__.py", line 13, in run_
pylint
Run(sys.argv[1:])
File "/home/cpennington/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/pylint/lint.py", line 1300, in __init
__
linter.check(args)
File "/home/cpennington/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/pylint/lint.py", line 726, in check
class AccessResponse(object):
def __init__(self, has_access, error_code=None, developer_message=None, user_message=None):
self.has_access = bool(has_access)
def __nonzero__(self):
return self.has_access
not AccessResponse(False)
FAILING HEADER
==================================================================== test session starts ====================================================================
platform linux2 -- Python 2.7.9, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/devstack/edx-platform, inifile: /home/cpennington/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/edx_repo_tools/oep2/oep2-report.ini
plugins: flaky-2.4.0, xdist-1.14, edx-repo-tools-0.1
PASSING HEADER
========================================================================= test session starts ==========================================================================
========================================================================= FAILURES ==========================================================================
____________________________________________________________ check_explicit[edx/edx-platform-3] _____________________________________________________________
/home/cpennington/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/_pytest/runner.py:482: Skipped: No openedx.yaml foundTraceback (most recent call last):
File "/home/cpennington/.virtualenvs/edx-platform/bin/py.test", line 11, in <module>
sys.exit(main())
File "/home/cpennington/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/_pytest/config.py", line 49, in main
return config.hook.pytest_cmdline_main(config=config)
File "/home/cpennington/.virtualenvs/edx-platform/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 724, in __call__
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File "/home/cpennington/.virt