java -jar start.jar etc/jetty.xml etc/iprestriction.xml
The idea is to use mixin to isolate ip configurations without touching the main configuration file.
#Versions tested:
var geo_usstates = { | |
"type": "FeatureCollection", | |
"features": [{ | |
"type": "Feature", | |
"id": "01", | |
"properties": { | |
"name": "AL" | |
}, | |
"geometry": { |
import org.apache.commons.io.FileUtils; | |
import org.apache.commons.io.filefilter.TrueFileFilter; | |
import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer; | |
import org.apache.solr.client.solrj.response.QueryResponse; | |
import org.apache.solr.common.SolrDocument; | |
import org.apache.solr.common.SolrInputDocument; | |
import org.apache.solr.common.params.CommonParams; | |
import org.apache.solr.common.params.ModifiableSolrParams; | |
import org.apache.solr.common.params.SolrParams; | |
import org.apache.solr.core.CoreContainer; |
Simplest way to add pan/zoom to a d3js visualisation
npm install -S passport-ldapauth |
/* | |
This file is a brief example of how to use angularfire to authenticate a user, save that user's public profile to firebase, then | |
ensure that both the authenticated and public user are available in your controllers. | |
The route configuration uses angular-ui-router: https://github.com/angular-ui/ui-router | |
*/ | |
// CREATE COLLECTION | |
solr create_collection -c my_collection -shards 2 -d path-to-my-conf | |
// CHECK COLLECTION SCHEMA | |
curl http://solr-host.dev:8983/solr/my_collection/schema?wt=schema.xml | |
// SCHEMA ITS GOOD | |
// UPDATE SCHEMA |
export SOLRUPDATE='http://localhost:8983/solr/testingCore/update?wt=json&commit=true' | |
export SOLRQUERY='http://localhost:8983/solr/testingCore/select?wt=json&q=*:*' | |
curl $SOLRUPDATE --data-binary '[{"id": "1"},{"id": "2"}]' -H 'Content-Type: application/json' -X POST -H "Transfer-Encoding: chunked" | |
#>> response {"responseHeader":{"status":0,"QTime":295}} | |
curl $SOLRQUERY | |
#>> {"responseHeader":{"status":0,"QTime":15,"params":{"q":"*:*","wt":"json"}},"response":{"numFound":2,"start":0,"maxScore":1.0,"docs":[{"id":"1","_version_":1570026155898044416},{"id":"2","_version_":1570026155878121472}]}} |
import os | |
import time | |
import busio | |
import digitalio | |
import board | |
import adafruit_mcp3xxx.mcp3008 as MCP | |
from adafruit_mcp3xxx.analog_in import AnalogIn | |
# create the spi bus | |
spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI) |
#!/usr/bin/env python | |
"""File format conversion | |
category: vtk, file conversion, tomb""" | |
import os, sys | |
import vtk | |
def vtk2vtp(invtkfile, outvtpfile, binary=False): | |
"""What it says on the label""" | |
reader = vtk.vtkPolyDataReader() |