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
| { | |
| "query": { | |
| "query_string": { | |
| "query": "source_publisher_type:MAINSTREAM_NEWS" | |
| } | |
| }, | |
| "filter": { | |
| "range": { | |
| "date_found": { | |
| "gte": "2015-07-21T10:25:15Z", |
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
| { | |
| "query": { | |
| "query_string": { | |
| "query": "source_publisher_type:MAINSTREAM_NEWS" | |
| } | |
| }, | |
| "filter": { | |
| "range": { | |
| "date_found": { | |
| "gte": "2015-07-21T10:25:15Z", |
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
| POST /content_*/_search HTTP/1.1 | |
| Accept: application/json | |
| Accept-Encoding: gzip, deflate | |
| Connection: keep-alive | |
| Content-Length: 131 | |
| Content-Type: application/json | |
| Host: localhost:9200 | |
| User-Agent: HTTPie/0.9.2 | |
| { |
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
| curl -XGET 'http://acme.elasticsearch.spinn3r.com/content*/_search?pretty=true' --header "X-vendor: acme" --header "X-vendor-auth: vKkYntP73c1IVZddxXnvRorPQiHo" -d '{ | |
| "size": 1, | |
| "query" : { | |
| "term" : { "main" : "firefox" } | |
| } | |
| } | |
| ' |
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
| { | |
| "bucket" : 1459618800097, | |
| "sequence" : 1459618891000015420, | |
| "sequence_range" : 9297, | |
| "hashcode" : "cry8h2SbQBlpllWRnDo1NBwgBJE", | |
| "resource" : "http://politico.com/playbook/2016/04/bernie-gets-under-hillarys-skin-manafot-rising-trumps-new-guru-builds-empire-including-veterans-of-gops-last-contested-convention-bdays-brent-colburn-meridith-webster-213545", | |
| "date_found" : "2016-04-02T17:41:31Z", | |
| "index_method" : "PERMALINK_TASK", | |
| "detection_method" : "SOURCE", | |
| "version" : "5.1.684", |
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
| java.lang.NullPointerException | |
| at org.eclipse.jetty.client.HttpClient.send(HttpClient.java:536) | |
| at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:694) | |
| at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:678) | |
| at org.eclipse.jetty.proxy.AbstractProxyServlet.sendProxyRequest(AbstractProxyServlet.java:539) | |
| at org.eclipse.jetty.proxy.AsyncMiddleManServlet.service(AsyncMiddleManServlet.java:111) | |
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) | |
| at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:821) | |
| at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1685) | |
| at com.spinn3r.artemis.frontend.filters.AccountingRequestFilter.doFilter(AccountingRequestFilter.java:83) |
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
| String brokerURL = String.format( "tcp://%s:%s?jms.prefetchPolicy.all=1", TestWithEmbeddedBroker.BROKER_HOST, TestWithEmbeddedBroker.BROKER_PORT ); | |
| ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory( brokerURL ); | |
| Connection connection = connectionFactory.createConnection(); | |
| connection.start(); | |
| Session session = connection.createSession( true, Session.SESSION_TRANSACTED ); | |
| Queue dest = session.createQueue( queueName ); |
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
| ResponseDescriptor responseDescriptor | |
| = new ResponseDescriptor.Builder() | |
| .withStatus(301) | |
| .withHeader("Location", "http://httpbin.org/cookies/set?cat=dog") | |
| .build(); | |
| String url = String.format( "http://localhost.localdomain:%s/evaluate?response=%s", webserverPort.getPort(), responseDescriptor.toParam() ); | |
| HttpRequest httpRequest |
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
| http://1045theteam.com/jason-day-out-of-rio-olympics/ | |
| http://1045theteam.com/pat-summit-passes-away-at-64/ | |
| http://1045theteam.com/usa-announces-mens-basketball-roster/ | |
| http://247sports.com/Bolt/Agent-Only-way-Durant-leaves-Thunder-is-for-Heat-or-Warriors-45987535 | |
| http://247sports.com/Bolt/Kevin-Durant-not-expected-to-meet-with-Lakers-or-Wizards-45984145 | |
| http://247sports.com/Bolt/Report-Teams-trying-to-sign-Kevin-Durant-for-2017-not-2016-46000555 | |
| http://247sports.com/Bolt/Rockets-will-pursue-Durant-and-other-big-names-in-free-agency-46010526 | |
| http://247sports.com/Bolt/Tim-Duncan-will-be-present-at-Spurs-meeting-with-Kevin-Durant-45972170 | |
| http://247sports.com/Bolt/Warriors-believe-Durant-odds-increased-due-to-Finals-loss-45971904 | |
| http://247sports.com/Bolt/Wojnarowski-Warriors-have-Durants-attention-45977902 |
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
| var remaining = 0; | |
| for(var i = 0; i < lessons_left.length; ++i) { | |
| var current = lessons_left[i]; | |
| var text = current.textContent; | |
| var idx = text.indexOf("/"); | |
| if (idx > 0) { | |
| remaining += parseInt(text.substr(idx + 1)) | |
| } |