start new:
tmux
start new with session name:
tmux new -s myname
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Sortable: `put: []` demo</title> | |
| <!-- AngularJS --> | |
| <!-- Sortable.js --> |
| ## Db creation | |
| PGPASSFILE=$CNODE_HOME/priv/dbsynch scripts/postgresql-setup.sh --createdb | |
| # mainnet : 192.168.1.190 | |
| # directory : cardano-db-sync | |
| # database : cexplorer | |
| # user/pass : poolboy/p@55w0rd | |
| ############################################################################################ | |
| PGPASSFILE=config/pgpass db-sync-node/bin/cardano-db-sync-extended \ | |
| --config config/mainnet-config.yaml \ |
| cd $HOME/cardano-node | |
| cp dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.19.1/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin && | |
| cp dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.19.1/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin | |
| cp dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.20.0/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin && | |
| cp dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.20.0/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin | |
| cp dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.23.0/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin && | |
| cp dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.23.0/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin |
| Install ghc 8.6.5 | |
| sudo apt-get install haskell-platform | |
| This also include cabal2.4 but we need cabal 3.0 | |
| wget http://hackage.haskell.org/package/cabal-install-3.0.0.0/cabal-install-3.0.0.0.tar.gz 1 | |
| tar -xf cabal-install-3.0.0.0.tar.gz | |
| cd cabal-install-3.0.0.0 | |
| cabal update | |
| cabal install |
| { | |
| "friendly_name": "Adasea_Singapore2", | |
| "addr": "134.209.104.215", | |
| "port": 3002, | |
| "valency": 1 | |
| }, | |
| { | |
| "operator": "AKIBA", | |
| "addr": "139.99.61.246", | |
| "port": 10006, |
| defmodule PigLatin do | |
| def translate(sentence) do | |
| list(String.split(sentence," ")) | |
| end | |
| def list(list) do | |
| list(list, []) | |
| |> Enum.reverse | |
| end |
| defmodule Flat do | |
| def list(list) do | |
| list(list, []) | |
| |> Enum.reverse | |
| end | |
| def list([h | t], acc) when h == [], do: list(t, acc) | |
| def list([h | t], acc) when is_list(h), do: list(t, list(h, acc)) | |
| def list([h | t], acc), do: list(t, [h | acc]) | |
| def list([], acc), do: acc |
| // Update: Hey Folks - I've got a full Gulpfile with everything else over at https://github.com/wesbos/React-For-Beginners-Starter-Files | |
| var source = require('vinyl-source-stream'); | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var browserify = require('browserify'); | |
| var reactify = require('reactify'); | |
| var babelify = require('babelify'); | |
| var watchify = require('watchify'); | |
| var notify = require('gulp-notify'); |