(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| var VisualRecognitionV3 = require('watson-developer-cloud/visual-recognition/v3'); | |
| var toBuffer = require('typedarray-to-buffer') | |
| var visualRecognition = new VisualRecognitionV3({ | |
| api_key: 'INSERT YOUR API KEY HERE', | |
| version: '2016-05-20' | |
| }); | |
| var catClassImages = toBuffer(<YOUR_BYTE_ARRAY>); | |
| var dogClassImages = toBuffer(<YOUR_BYTE_ARRAY>); |
| |
| { | |
| "globals": { | |
| "jasmine": false, | |
| "spyOn": false, | |
| "it": false, | |
| "console": false, | |
| "describe": true, | |
| "expect": false, | |
| "beforeEach": false, | |
| "before": false, |
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
| package com.my.utility; | |
| import com.fasterxml.jackson.databind.util.ISO8601Utils; | |
| import com.google.gson.TypeAdapter; | |
| import com.google.gson.stream.JsonReader; | |
| import com.google.gson.stream.JsonToken; | |
| import com.google.gson.stream.JsonWriter; | |
| import java.io.IOException; | |
| import java.text.DateFormat; |
| package org.paulbetts.shroom.core; | |
| import android.os.AsyncTask; | |
| import com.squareup.okhttp.*; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.UnsupportedEncodingException; | |
| import java.util.Arrays; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| $ mvn verify | |
| [INFO] Scanning for projects... | |
| [INFO] | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] Building maven-tests-config 1.0-SNAPSHOT | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] | |
| [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ maven-tests-config --- | |
| [debug] execute contextualize | |
| [INFO] Using 'UTF-8' encoding to copy filtered resources. |
| var express = require('express'), | |
| httpProxy = require('http-proxy'), | |
| app = express(); | |
| var proxy = new httpProxy.RoutingProxy(); | |
| function apiProxy(host, port) { | |
| return function(req, res, next) { | |
| if(req.url.match(new RegExp('^\/api\/'))) { | |
| proxy.proxyRequest(req, res, {host: host, port: port}); |