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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>jQuery UI Slider - Default functionality</title> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<link rel="stylesheet" href="/resources/demos/style.css" /> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 requests | |
from collections import deque | |
class SolrTermVectorCollector(object): | |
def __pathToTvrh(self, solrUrl, collection): | |
import urlparse | |
userSpecifiedUrl = urlparse.urlsplit(solrUrl) | |
schemeAndNetloc = urlparse.SplitResult(scheme=userSpecifiedUrl.scheme, | |
netloc=userSpecifiedUrl.netloc, | |
path='', | |
query='', |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>search as you type</title> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<style> |
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
public class CalculatorParser extends BaseParser<Integer> { | |
public Rule Expression() { | |
return Sequence( | |
Term(), | |
ZeroOrMore( | |
FirstOf( | |
Sequence('+', Term(), push(pop() + pop())), | |
Sequence('-', Term(), push(pop(1) - pop())) | |
) |
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
public class WimpySwanParser extends BaseParser<SpanQuery> { | |
public Rule Query() { | |
return Sequence(OrExpression(),EOI); | |
} | |
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
#!/usr/bin/env bash | |
#this is how to create suggest as you type for finding a name (searching over last and first names) | |
#the search is only issued upon 3 characters or more because too many results will come back otherwise. This is a search for "tho" which could be Thomas (a first name) or Thompson (a last name). | |
curl "http://localhost:8983/solr/select?indent=on&qf=first_name%20last_name&defType=edismax&facet=truel&facet.field=first_name&facet.field=last_name&facet.mincount=1&fl=first_name%20last_name&q=tho*&facet.prefix=tho" | |
#as soon as a space is issued notice the change in the facet.prefix | |
curl "http://localhost:8983/solr/select?indent=on&qf=first_name%20last_name&defType=edismax&facet=truel&facet.field=first_name&facet.field=last_name&facet.mincount=1&fl=first_name%20last_name&q=thomas+&facet.prefix=" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Asteroids</title> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="asteroids.js" charset="utf-8"></script> | |
<script type="text/javascript"> | |
Space = function(params /*{width, height}*/) { | |
this.width = params.width; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>appendNodeFace</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js" type="text/javascript"></script> | |
<!--<script src="d3.v2.js" type="text/javascript"></script>--> | |
<script src="https://raw.github.com/andyet/ICanHaz.js/master/ICanHaz.min.js" type="text/javascript"></script> | |
<!--<script src="ICanHaz.min.js" type="text/javascript"></script>--> | |
<style type="text/css"> | |
circle { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>appendNodeFace</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js" type="text/javascript"></script> | |
<!--<script src="d3.v2.js" type="text/javascript"></script>--> | |
<script src="https://raw.github.com/andyet/ICanHaz.js/master/ICanHaz.min.js" type="text/javascript"></script> | |
<!--<script src="ICanHaz.min.js" type="text/javascript"></script>--> | |
<style type="text/css"> | |
circle { |