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:
# Install NPM dependencies: | |
npm install babel-generator@6.26.0 babel-traverse@6.26.0 babylon@6.18.0 | |
# Download Facebook's unminified SDK | |
wget https://connect.facebook.net/en_US/sdk/debug.js | |
# Run | |
node split-facebook-debug-js.js |
import merge from 'lodash/merge'; | |
/** | |
* Given an Enzyme ShallowWrapper and component identifier, dives() down until the | |
* specified component is the root component. | |
* | |
* @param { Enzyme.ShallowWrapper } shallowWrapper - wrapper to dive into | |
* @param { string } name of component to dive for (should match constructor name). | |
* @param { object= } options to pass to dive() | |
*/ |
^((?!wpa_supplicant|NetStatUtil).*)$ |
I hereby claim:
To claim this, I am signing this object:
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); | |
}) |
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): | |
""" |
/* 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], |
[merge] | |
tool = mymeld | |
conflictstyle = diff3 | |
[mergetool "mymeld"] | |
cmd = meld --diff $LOCAL $MERGED $REMOTE |
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) |
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 |