Skip to content

Instantly share code, notes, and snippets.

(ns fq.dce-test
(:require
[fulcro.client.primitives :as fp :refer (defsc)]))
(defsc Test [this props]
{}
(js/console.log "THIS SHOULD BE REMOVED!"))
(def ui-test (fp/factory Test {}))
(loader/set-loaded! :mod-init)
(println "mod-init.main launching")
(println "in mod-init calling hi-one")
(loader/load :mod-one
(fn []
((resolve 'mod-one.main/hi-one))
(println "in mod-init calling hi-two")
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Retrieving cider/cider-nrepl/0.17.0-SNAPSHOT/cider-nrepl-0.17.0-20180319.051116-23.pom from clojars
Retrieving cider/cider-nrepl/0.17.0-SNAPSHOT/cider-nrepl-0.17.0-20180319.051116-23.jar from clojars
Error loading cider.nrepl: java.io.FileNotFoundException: Could not locate orchard/misc__init.class or orchard/misc.clj on classpath., compiling:(cider/nrepl/middleware/pprint.clj:1:1)
Error loading cider.nrepl: java.io.FileNotFoundException: Could not locate orchard/misc__init.class or orchard/misc.clj on classpath., compiling:(cider/nrepl/middleware/pprint.clj:1:1)
Error loading cider.nrepl: java.io.FileNotFoundException: Could not locate orchard/misc__init.class or orchard/misc.clj on classpath., compiling:(cider/nrepl/middleware/pprint.clj:1:1)
shadow$provide.module$node_modules$quill$dist$quill = function($global$$, $require$$, $module$jscomp$0$$, $exports$jscomp$0$$) {
(function($root$$, $factory$$) {
"object" === typeof $exports$jscomp$0$$ && "object" === typeof $module$jscomp$0$$ ? $module$jscomp$0$$.exports = $factory$$() : "function" === typeof define && define.amd ? define([], $factory$$) : "object" === typeof $exports$jscomp$0$$ ? $exports$jscomp$0$$.Quill = $factory$$() : $root$$.Quill = $factory$$();
})(this, function() {
return function($modules$$) {
function $__webpack_require__$$($moduleId$$) {
if ($installedModules$$[$moduleId$$]) {
return $installedModules$$[$moduleId$$].exports;
}
var $module$$ = $installedModules$$[$moduleId$$] = {i:$moduleId$$, l:!1, exports:{}};
var raf = require('rafl')
var E_NOSCROLL = new Error('Element already at target scroll position')
var E_CANCELLED = new Error('Scroll cancelled')
var min = Math.min
module.exports = {
left: make('scrollLeft'),
top: make('scrollTop')
}
@thheller
thheller / a.js
Created February 15, 2018 15:36
ES6 import problem
export let foo = "foo";
export let bar = "bar";
export default "default";
async function someAsyncFn(thing) {
var value = await thing;
console.log("await value", value);
}
{"assets":[],"chunks":[],"modules":[{"id":0,"identifier":"\/goog\/base.js","name":"\/goog\/base.js","size":875,"reasons":[]},{"id":1,"identifier":"\/goog\/debug\/error.js","name":"\/goog\/debug\/error.js","size":0,"reasons":[]},{"id":2,"identifier":"\/goog\/dom\/nodetype.js","name":"\/goog\/dom\/nodetype.js","size":0,"reasons":[]},{"id":3,"identifier":"\/goog\/string\/string.js","name":"\/goog\/string\/string.js","size":159,"reasons":[]},{"id":4,"identifier":"\/goog\/asserts\/asserts.js","name":"\/goog\/asserts\/asserts.js","size":0,"reasons":[]},{"id":5,"identifier":"\/goog\/reflect\/reflect.js","name":"\/goog\/reflect\/reflect.js","size":0,"reasons":[]},{"id":6,"identifier":"\/goog\/math\/long.js","name":"\/goog\/math\/long.js","size":0,"reasons":[]},{"id":7,"identifier":"\/goog\/math\/integer.js","name":"\/goog\/math\/integer.js","size":4046,"reasons":[]},{"id":8,"identifier":"\/goog\/object\/object.js","name":"\/goog\/object\/object.js","size":59,"reasons":[]},{"id":9,"identifier":"\/goog\/array\/array.js
{:build-modules
[{:module-id :base,
:sources
[[:shadow.build.classpath/resource "goog/base.js"]
[:shadow.build.classpath/resource "goog/debug/error.js"]
[:shadow.build.classpath/resource "goog/dom/nodetype.js"]
[:shadow.build.classpath/resource "goog/string/string.js"]
[:shadow.build.classpath/resource "goog/asserts/asserts.js"]
[:shadow.build.classpath/resource "goog/reflect/reflect.js"]
[:shadow.build.classpath/resource "goog/math/long.js"]
(in-ns 'cljs.compiler)
;; no perf impact, just easier to read
(defn source-map-inc-col [{:keys [gen-col] :as m} n]
(assoc m :gen-col (+ gen-col n)))
(defn source-map-inc-line [{:keys [gen-line] :as m}]
(assoc m
:gen-line (inc gen-line)
:gen-col 0))