Skip to content

Instantly share code, notes, and snippets.

@elbakramer
elbakramer / jsonrpc.sh
Last active March 4, 2018 09:05
json rpc client in bash script
#!/bin/bash
rpcserver=""
rpcport=""
rpcuser=""
rpcpassword=""
method="help"
paramsjson="[]"
id="$(uuidgen)"
@elbakramer
elbakramer / ZeppelinPlotly.scala
Created August 24, 2017 17:07
apache zeppelin plotly integration
import org.json4s._
import org.json4s.JsonDSL._
import org.json4s.jackson.JsonMethods._
object Plotly {
val scriptUrl: String = "https://cdn.plot.ly/plotly-latest.min.js"
val stylePolyfill: String = """
|.plotly .modebar-btn {
| display: inline-block;
|}