Skip to content

Instantly share code, notes, and snippets.

View fsmunoz's full-sized avatar

Frederico Muñoz fsmunoz

View GitHub Profile
@fsmunoz
fsmunoz / watson-vr.R
Created April 14, 2017 10:54
Watson Visual Recognition from R using httr
## Retrieve existing classifiers (if any)
retrieve_classifiers <- function (api_key, api_endp)
{
req <- GET(sprintf("%s/v3/classifiers/?api_key=%s&version=2016-05-20", api_endp, api_key))
}
## Delete an existing classifier
delete_classifier <- function (api_key, api_endp, classifier_id)
{
@fsmunoz
fsmunoz / abcl-mqtt.lisp
Created June 24, 2013 14:02
Simple example of MQTT message publish in Common Lisp and ABCL, using the Eclipse Paho client
;; Simple example of MQTT message publish using Common Lisp and ABCL
;;
;; Uses the Eclipse Paho client
;;
;; Author: Frederico Munoz <[email protected]>
;; Date: 22-Jun-2013
;; Keywords: mqtt, messaging, m2m, telemetry, abcl, iot, paho, lisp
;;
;; Copying and distribution of this file, with or without modification,
;; are permitted in any medium without royalty provided the copyright
@fsmunoz
fsmunoz / mqtt.clj
Created June 23, 2013 09:46
Simple example of MQTT message publishing using Clojure and the Eclipse Paho libraries
;; Simple example of MQTT message publish using Clojure
;;
;; Uses the Websphere Eclipse Paho client
;;
;; Author: Frederico Munoz <[email protected]>
;; Date: 18-Jun-2013
;; Keywords: mqtt, messaging, m2m, telemetry, clojure, iot, paho
;;
;; Copying and distribution of this file, with or without modification,
;; are permitted in any medium without royalty provided the copyright
@fsmunoz
fsmunoz / mq-send.clj
Last active June 10, 2022 06:29
Simple example of sending a message to IBM Websphere MQ with Clojure and the IBM Websphere MQ JMS classes.
;; Simple example of sending a message to Websphere MQ with Clojure
;;
;; Uses the Websphere MQ JMS classes (i.e. JMS-like in API, but
;; submits to a MQ queue)
;;
;; Author: Frederico Munoz <[email protected]>
;; Date: 20-Jun-2013
;; Keywords: mq, websphere, messaging, jms
;;
;; Copying and distribution of this file, with or without modification,