[lowdb] lowdb Small JSON database for Node, Electron and the browser. Powered by Lodash. https://github.com/typicode/lowdb
db.get('posts')
.push({ id: 1, title: 'lowdb is awesome'})
.write()
// Created by Robert N. 030715 | |
// Candle labels | |
study(title = "Candles", overlay = true) | |
trend= input(5, minval=1, title="Trend in Bars") | |
DojiSize = input(0.05, minval=0.01, title="Doji size") | |
data=(abs(open - close) <= (high - low) * DojiSize) | |
plotchar(data, title="Doji", text='Doji', color=white) |
[lowdb] lowdb Small JSON database for Node, Electron and the browser. Powered by Lodash. https://github.com/typicode/lowdb
db.get('posts')
.push({ id: 1, title: 'lowdb is awesome'})
.write()
Swagger API Middlewares and Firebase https://www.youtube.com/watch?v=YqThrxlUgnE
Swagger generated server https://github.com/kalaspuffar/notes-server
Access Tokens Password Grant 12.2
POST /oauth/token HTTP/1.1
Host: authorization-server.com
#node 8 | |
#https://nodejs.org/en/download/ | |
#nvm | |
#https://github.com/creationix/nvm#install-script | |
cd /tmp | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm" |
pragma solidity ^0.5.0; | |
/** | |
* @title ERC20 interface | |
* @dev see https://github.com/ethereum/EIPs/issues/20 | |
*/ | |
interface IERC20 { | |
function transfer(address to, uint256 value) external returns (bool); | |
function approve(address spender, uint256 value) external returns (bool); |
mkdir mvp-blockchain-serverless | |
#install nvm and put a nvmrc file on the directory | |
touch .nvmrc && echo "8" >! .nvmrc && cd . | |
#initialize npm package | |
npm init | |
npm install firebase-functions@latest firebase-admin@latest --save | |
npm install -g firebase-tools |
#GCloud | |
#install | |
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - | |
sudo apt-get update && sudo apt-get install google-cloud-sdk | |
#references | |
#https://cloud.google.com/sdk/docs/quickstart-linux |
pragma solidity ^0.4.24; | |
import "./ERC20.sol"; | |
/** | |
* @title SimpleToken | |
* @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. | |
* Note they can later distribute these tokens as they wish using `transfer` and other | |
* `ERC20` functions. | |
*/ |
#Generating a usable Ethereum wallet and its corresponding keys | |
#https://kobl.one/blog/create-full-ethereum-keypair-and-address/ | |
# Generate the private and public keys | |
openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > Key | |
# Extract the public key and remove the EC prefix 0x04 | |
cat Key | grep pub -A 5 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^04//' > pub |