This file contains 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
ValueError | |
ValueError: invalid literal for int() with base 10: 'default' | |
Traceback (most recent call last) | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/usr/local/lib/python2.7/dist-packages/werkzeug/contrib/fixers.py", line 152, in __call__ | |
return self.app(environ, start_response) | |
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app | |
response = self.make_response(self.handle_exception(e)) |
This file contains 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
/* | |
This example uses Scala. Please see the MLlib documentation for a Java example. | |
Try running this code in the Spark shell. It may produce different topics each time (since LDA includes some randomization), but it should give topics similar to those listed above. | |
This example is paired with a blog post on LDA in Spark: http://databricks.com/blog | |
Spark: http://spark.apache.org/ | |
*/ | |
import scala.collection.mutable |
This file contains 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 dispatch._ | |
def func = Http(host("exaadsfadsfmple.com") OK as.String) | |
try { | |
val rv = func.flatMap { _ => Promise(1) } | |
rv() // Doesn't reach here, prints out message | |
println("I'll never get here") | |
} catch { | |
case e: Exception => println("I'll catch this, but you'll still see the JRE printing a stack trace for a BG thread") | |
} |
This file contains 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
74a75 | |
> var fragment = document.createDocumentFragment(); | |
77c78 | |
< document.body.appendChild(hintsDiv); | |
--- | |
> fragment.appendChild(hintsDiv); | |
92a94 | |
> document.body.appendChild(fragment); |
This file contains 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
The Godfather: | |
(0, ('c47cdc01ae393cc1', 'The Godfather', 1285.2524694611532, 1996.0, 1996.0)) | |
(1, ('14ad24bec9864311', 'The Godfather Part II', 247.03430466050014, 664.0, 2126.0)) | |
(2, ('3f07609919cea6a1', 'Unforgiven', 66.8648447097107, 464.0, 2203.0)) | |
(3, ('3d759a6cec209d51', 'Goodfellas', 52.01722828431214, 1069.0, 3324.0)) | |
(4, ('3d8d7ee67be90ce1', 'Casino', 44.32755685131195, 582.0, 2429.0)) | |
(5, ('fa57dfab448a0271', 'The Deer Hunter', 41.576119653738715, 437.0, 2244.0)) | |
(6, ('b269bfba160411c1', 'The Good, the Bad and the Ugly', 39.582209420249114, 697.0, 2689.0)) | |
(7, ('d79251b20619d5a1', 'Scarface', 35.78798419686481, 812.0, 2809.0)) |
This file contains 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
<p> | |
<font size="5"> | |
<font size="5"> | |
<font size="5"> | |
<font size="5"> | |
<font size="5"> | |
<font size="5"> | |
<font size="5"> | |
<font size="5"> | |
<font size="5"> |
This file contains 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
curl -XPUT 'http://localhost:9200/products/othertype/_mapping?pretty=true' -d'{ | |
"othertype": { | |
"properties": { | |
"year": { "type": "long" }, | |
"b": { "type": "boolean" } | |
} | |
} | |
}' | |
This file contains 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 getopt, sys, os, re | |
optlist, args = getopt.getopt(sys.argv[1:], "c:") | |
if len(args) != 2: | |
print "usage: " + sys.argv[0] + " [-c cookie] <url> <file> | bash" | |
sys.exit(1) | |
url, file = args |
This file contains 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
76 www.amazon.com P sophie the giraffe B000IDSLOG | |
4 www.amazon.co.uk P sophie the giraffe B000SOG7BY | |
2 www.diapers.com P sophie the giraffe 15640 | |
2 www.amazon.com P sophie the giraffe B00RYW27QM | |
1 www.amazon.com P sophie the giraffe B000SOG7BY |