% Title % Name % Date
write markdown, use pandoc to convert to reveal.js slides.
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:e0c232c15fa3e1f52b7519442a1e1f6f42fe81a3902983b5fd630d303452caa8" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
| { | |
| "metadata": { | |
| "name": "", | |
| "signature": "sha256:7a91feb23f9c512cc162a8553eaa4f6eecbf03a82802d7a221f692c4cca3f475" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ |
| set nocompatible " be iMproved, required | |
| " vim-plug, see https://github.com/junegunn/vim-plug | |
| call plug#begin('~/.vim/plugged') | |
| " plugins | |
| Plug 'tpope/vim-sensible' | |
| Plug 'tpope/vim-commentary' | |
| Plug 'tpope/vim-surround' | |
| Plug 'tpope/vim-repeat' |
| function! MarkdownFolds() | |
| let thisline = getline(v:lnum) | |
| if match(thisline, '^##') >= 0 | |
| return ">2" | |
| elseif match(thisline, '^#') >= 0 | |
| return ">1" | |
| else | |
| return "=" | |
| endif | |
| endfunction |
| #!/usr/bin/env node | |
| 'use strict'; | |
| // basic functions for mean and standard deviation | |
| let getMean = (data) => { | |
| return data.reduce(function (a, b) { | |
| return Number(a) + Number(b); | |
| }) / data.length; | |
| }; |
In short, user provide ssh key to rpc server manager. Once the manager configured, then everytime the user need to type folowing commands to access to the geth rpc server:
ssh -N -L 9545:localhost:8545 geth@machine_A_addrhttp://localhost:9545For convenienve, in the following I use these abbreviations:
| 'use strict' | |
| const StreamrClient = require('streamr-client'); | |
| const apiKey = '' // read-only key created via streamr.network/stream | |
| // Create the client using api key | |
| const client = new StreamrClient({ | |
| auth: { | |
| apiKey: apiKey | |
| } | |
| }) |
For operation systems: Ubuntu, Debian, and MacOS. In windows the pip and virtualenv commands should be the same once python is installed somewhere.
Use python module psutil as example.
> sudo apt update
> sudo apt install python-pip virtualenv
> /usr/bin/virtualenv ~/venv # create virtualenv in ~/venv
| set nocompatible " be iMproved, required | |
| " vim-plug, see https://github.com/junegunn/vim-plug | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'tpope/vim-sensible' | |
| Plug 'tpope/vim-commentary' | |
| Plug 'tpope/vim-repeat' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
| Plug 'sheerun/vim-polyglot' |