Skip to content

Instantly share code, notes, and snippets.

@aymanosman
Created January 10, 2014 23:07
Show Gist options
  • Save aymanosman/8364430 to your computer and use it in GitHub Desktop.
Save aymanosman/8364430 to your computer and use it in GitHub Desktop.
(ns example.core)
(def com (js.require "serialport")) ;; Using a dot instead of a / works incidentally
(def device-wrong3 (new com.SerialPort "COM1"))
;; // Compiled by ClojureScript 0.0-2080
;; goog.provide('example.core');
;; goog.require('cljs.core');
;; example.core.com = require("serialport");
;; example.core.device_wrong3 = (new com.SerialPort("COM1"));
;; // Compiled by ClojureScript 0.0-2127
;; goog.provide('example.core');
;; goog.require('cljs.core');
;; example.core.com = require("serialport");
;; example.core.device_wrong3 = (new example.core.com.SerialPort("COM1"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment