I hereby claim:
- I am bregenspan on github.
- I am benregenspan (https://keybase.io/benregenspan) on keybase.
- I have a public key ASBLpQ0uaOXi-hamZxrh7-wK1nxOTmxl1tZ-seoYYtZ4Rwo
To claim this, I am signing this object:
| ## Customize the test machine | |
| machine: | |
| environment: | |
| SAUCEUSER: [USERNAME HERE] | |
| SAUCEKEY: [KEY HERE] | |
| dependencies: | |
| post: | |
| - wget https://d2nkw87yt5k0to.cloudfront.net/downloads/sc-latest-linux.tar.gz && tar -xvf sc-latest-linux.tar.gz |
| /* Version of wd.asserters.jsCondition that retries on-error. | |
| This is useful for cases where you need to assert a condition at a time when the page might | |
| be reloading -- in such a case, the assertion could reach the browser at a time when the document | |
| is not yet ready, triggering an error. This catches the error and retries. | |
| Usage: | |
| > browser.waitFor(jsConditionWithRetries('window.FOOBAR'), 5000, 500); | |
| (Requires Selenium Server >= 2.44.0) |
| diff --git a/lib/dependencies/AMDRequireDependency.js b/lib/dependencies/AMDRequireDependency.js | |
| index 1f183e1..526531b 100644 | |
| --- a/lib/dependencies/AMDRequireDependency.js | |
| +++ b/lib/dependencies/AMDRequireDependency.js | |
| @@ -47,14 +47,14 @@ AMDRequireDependency.Template.prototype.apply = function(dep, source, outputOpti | |
| source.insert(depBlock.arrayRange[0] + 0.9, "var __WEBPACK_AMD_REQUIRE_ARRAY__ = "); | |
| source.replace(depBlock.arrayRange[1], depBlock.functionRange[0] - 1, "; ("); | |
| source.insert(depBlock.functionRange[1], ".apply(null, __WEBPACK_AMD_REQUIRE_ARRAY__));"); | |
| - source.replace(depBlock.functionRange[1], depBlock.outerRange[1] - 1, "}" + wrapper[1]); | |
| + source.replace(depBlock.functionRange[1], depBlock.outerRange[1] - 1, "}.bind(this)" + wrapper[1]); |
| diff --git a/static/js/lib/Backbone.ModelBinder.js b/static/js/lib/Backbone.ModelBinder.js | |
| index b321c37..53881b1 100644 | |
| --- a/static/js/lib/Backbone.ModelBinder.js | |
| +++ b/static/js/lib/Backbone.ModelBinder.js | |
| @@ -25,6 +25,10 @@ | |
| this._model = model; | |
| this._rootEl = rootEl; | |
| + this._attributeBindings = {}; | |
| + this._options = { // TODO: set this properly |
| from scrapy.http import TextResponse | |
| from scrapy.selector import HtmlXPathSelector | |
| XPATH_TO_TEST = "//img/@src" | |
| FILE_TO_TEST_AGAINST = "pathtest.html" | |
| f = open(FILE_TO_TEST_AGAINST, 'r') | |
| test_html = f.read() | |
| response = TextResponse('http://www.example.com', status=200, headers=[], body=test_html) |
| [merge] | |
| tool = mymeld | |
| conflictstyle = diff3 | |
| [mergetool "mymeld"] | |
| cmd = meld --diff $LOCAL $MERGED $REMOTE |
| /* Panopticon Simulator v0.1 | |
| Scripts http://360gigapixels.com/tokyo-tower-panorama-photo/ to convey a | |
| deep, Enemy Of The State starring Will Smith-reminescent message regarding | |
| the surveillance state and the voyeurism of gigapixel photos. | |
| */ | |
| var people = [ | |
| [-7.510113307350065,14.652493577797886,0.5], | |
| [56.83548684296012,16.498978246091596,0.5], |
| class XHMOMixin(object): | |
| """ | |
| Use to supply a Tastypie resource with support for X-HTTP-Method-Override | |
| headers, e.g.: | |
| `class HomeResource(XHMOMixin, ModelResource):` | |
| """ | |
| def method_check(self, request, allowed=None): | |
| """ |
| var table = document.querySelectorAll('tbody')[1]; | |
| Array.prototype.slice.apply(table.querySelectorAll('tr')).forEach(function (el) { | |
| var size = el.querySelector('td:nth-of-type(3)').innerHTML; | |
| var num = parseInt(size,0); | |
| if (size.indexOf('KiB') > -1) { | |
| num = num * 1024; | |
| } | |
| el.setAttribute('data-size', num); | |
| }) |
I hereby claim:
To claim this, I am signing this object: