Skip to content

Instantly share code, notes, and snippets.

View chenyong's full-sized avatar
💭
Debugging TypeScript...

ChenYong chenyong

💭
Debugging TypeScript...
View GitHub Profile
=>> cooking watch -p
[cooking@1.5.0] - Loaded success: saladcss
[cooking@1.5.0] - Loaded success: lint
[cooking@1.5.0] - Loaded success: vue2
[cooking@1.5.0] - Loading server...
[cooking@1.5.0] - Listening at http://0.0.0.0:8080
build [====== ] 30%(node:85736) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
@chenyong
chenyong / main.js
Created May 4, 2017 04:50
Generated from https://github.com/Respo/respo with `:advanced :whitespace`
This file has been truncated, but you can view the full file.
if (typeof Math.imul == 'undefined' || Math.imul(0xffffffff, 5) == 0) {
Math.imul = function(a, b) {
var ah = a >>> 16 & 0xffff;
var al = a & 0xffff;
var bh = b >>> 16 & 0xffff;
var bl = b & 0xffff;
// the shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return al * bl + (ah * bl + al * bh << 16 >>> 0) | 0;
};
=>> yarn watch
yarn run v1.3.2
$ shadow-cljs watch browser
shadow-cljs - config: /Users/chen/work/shopfloor-simulator/shadow-cljs.edn version: 2.0.95
shadow-cljs - updating dependencies
shadow-cljs - dependencies updated
shadow-cljs - re-building aot cache on startup, that will take some time.
shadow-cljs - starting ...
shadow-cljs - HTTP server for ":browser" available at http://localhost:8080
shadow-cljs - watching build :browser
@chenyong
chenyong / download.log
Created November 24, 2017 06:55
Things to download before using shadow-cljs and respo
shadow-cljs - config: /Volumes/Extended/data/jimu/shopfloor-simulator/shadow-cljs.edn version: 2.0.100
shadow-cljs - updating dependencies
Retrieving thheller/shadow-cljs/2.0.100/shadow-cljs-2.0.100.pom from https://clojars.org/repo/
Retrieving org/clojure/clojure/1.9.0-beta4/clojure-1.9.0-beta4.pom from https://repo1.maven.org/maven2/
Retrieving org/clojure/spec.alpha/0.1.143/spec.alpha-0.1.143.pom from https://repo1.maven.org/maven2/
Retrieving org/clojure/pom.contrib/0.2.2/pom.contrib-0.2.2.pom from https://repo1.maven.org/maven2/
Retrieving org/clojure/core.specs.alpha/0.1.24/core.specs.alpha-0.1.24.pom from https://repo1.maven.org/maven2/
Retrieving org/clojure/java.classpath/0.2.3/java.classpath-0.2.3.pom from https://repo1.maven.org/maven2/
Retrieving org/clojure/pom.contrib/0.1.2/pom.contrib-0.1.2.pom from https://repo1.maven.org/maven2/
Retrieving org/sonatype/oss/oss-parent/7/oss-parent-7.pom from https://repo1.maven.org/maven2/
@chenyong
chenyong / error.log
Created November 29, 2017 06:38
shadow-cljs error: doseq
op^[[A[:app] Compiling ...
[:app] Build failure:
------ ERROR -------------------------------------------------------------------
File: /Users/chen/repo/cumulo/cumulo-workflow/server/src/server/network.cljs:42:5
--------------------------------------------------------------------------------
38 | (defonce client-caches (atom {}))
39 |
40 | (defn sync-clients! [reel]
41 | (let [db (:db reel), records (:records reel)]
42 | (doseq [[ ], s i, d keys]
@chenyong
chenyong / m.coffee
Created December 7, 2017 03:32
some code to try mobx-state-tree
types = require('mobx-state-tree').types
M1 = types
.model
a: types.string
b: types.frozen
c: types.map(types.number)
.actions (self) ->
changeA: (x) -> self.a = x
@chenyong
chenyong / error.log
Created December 7, 2017 03:36
shadow-cljs error
=>> yarn watch
yarn run v1.3.2
$ shadow-cljs watch browser
shadow-cljs - config: /Users/chen/work/simulator/shadow-cljs.edn version: 2.0.105
shadow-cljs - starting ...
Can't load log handler "java.util.logging.FileHandler"
java.nio.file.NoSuchFileException: /Users/chen/work/shopfloor-simulator/target/shadow-cljs/logging.properties.0.lck
java.nio.file.NoSuchFileException: /Users/chen/work/shopfloor-simulator/target/shadow-cljs/logging.properties.0.lck
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
@chenyong
chenyong / yarn.log
Created December 22, 2017 02:44
Log of yarn to upgrade latest shadow-cljs
This file has been truncated, but you can view the full file.
=>> git pull
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 9 (delta 4), reused 9 (delta 4), pack-reused 0
Unpacking objects: 100% (9/9), done.
From github.com:mvc-works/coworkflow
9bc5e7d..d766103 master -> origin/master
Updating 9bc5e7d..d766103
error: Your local changes to the following files would be overwritten by merge:
src/build/compile.clj
@chenyong
chenyong / a.bash
Created January 31, 2018 02:27
Process started with child_process.spawnSync does not die with its parent
coffee p.coffee
# then kill process with `kill`
ps-tree
# the process `sleep` remains, but under root process
@chenyong
chenyong / a.bash
Created January 31, 2018 02:27
Process started with child_process.spawnSync does not die with its parent
coffee p.coffee
# then kill process with `kill`
ps-tree
# the process `sleep` remains, but under root process