Skip to content

Instantly share code, notes, and snippets.

@redice
redice / keybase.md
Created May 9, 2023 09:26
keybase.md

Keybase proof

I hereby claim:

  • I am redice on github.
  • I am rickchang (https://keybase.io/rickchang) on keybase.
  • I have a public key ASDhBRtcYaaJCIm0frzkZRIDw66BpD7GPJHP59fmeK9hbQo

To claim this, I am signing this object:

@redice
redice / node-jmx-failed.md
Last active October 28, 2015 14:44
failed node-java and node-jmx in node v4.2.1

I encountered node v4.2.1 can't run node-java and node-jmx

Error message

$ npm install jmx
> java@0.5.5 install /Users/redice/apache/git.repository/myprojects/learning.area/jmx/node_modules/jmx/node_modules/java
> node-gyp rebuild

  CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o

In file included from ../src/java.cpp:1:

@redice
redice / promise.proof.coffee
Last active August 29, 2015 14:08
Prove promise as a monad
# Promise = require 'promise'
##
compare2Promise = (title, pA, pB) ->
valueA = null
valueB = null
pA.then (value) ->
valueA = value
pB.then (value) ->