Test with
$ sbt run
And then,
$ curl localhost:8080/mars/hi
$ curl localhost:8080/jupiter/hi
A warning occurred (42 apples) | |
An error occurred |
from distutils.core import setup | |
from distutils.extension import Extension | |
from Cython.Distutils import build_ext | |
ext_modules = [ | |
Extension("test_um", | |
["test_um.pyx"], | |
include_dirs=["/usr/local/include/boost"], | |
library_dirs=["/usr/local/lib"], | |
language="c++") |
Test with
$ sbt run
And then,
$ curl localhost:8080/mars/hi
$ curl localhost:8080/jupiter/hi
This assumes you already have a Yeoman app and are ready for publishing
Create production directory & assets
###Let's install Vagrant###
###Select a Vagrant Box from https://vagrantcloud.com###
#add it to your list of boxes
vagrant box add hashicorp/precise32
#create a new folder for your project & init vagrant
#Compilng You need g++ 4.9 to compile this code. Follow these steps to install g++-4.9
After installing run the following command to compile
/usr/bin/g++-4.9 -std=c++11 lambda.cpp
#Running
./a.out
import csv | |
import json | |
csvfile = open('voronoid-graph.csv', 'r') | |
jsonfile = open('output.json', 'w') | |
fieldnames = ("gene","subcategory","category") | |
categories = {} |
import json | |
import geojson | |
from shapely.geometry import shape | |
# Get cities from https://github.com/mahemoff/geodata/blob/master/cities.geojson | |
with open('cities.geojson') as json_data: | |
d = json.load(json_data) | |
for country in d['features']: | |
name = country['properties']['city'] |
node { | |
stage('Git') { | |
git 'https://github.com/muuki88/activator-play-cluster-sample.git' | |
} | |
stage('Build') { | |
def builds = [:] | |
builds['scala'] = { | |
// assumes you have the sbt plugin installed and created an sbt installation named 'sbt-0.13.13' | |
sh "${tool name: 'sbt-0.13.13', type: 'org.jvnet.hudson.plugins.SbtPluginBuilder$SbtInstallation'}/bin/sbt compile test" | |
} |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers