This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# make sure the .pem or .cer is in the respsective directory | |
cd "Documents/Hash Technologies/Hyper Ledger Fabric" && ssh -i "HyperLedgerFabric.cer" ubuntu@ec2-18-188-175-34.us-east-2.compute.amazonaws.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"blood_type": "B+ve", | |
"full_name": { | |
"first_name": "Himitsu", | |
"middle_name": "Phinshog", | |
"last_name": "Fushigi" | |
}, | |
"contact_details": { | |
"email": { | |
"primary": "himitsu.fushigi.07.26@protonmail.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @dev cargo doc --open will build a documentation of dependencies and their methods | |
// @dev alike C,C++ input and output is from standard io library | |
// @dev std has many features but this time we imported for input feature | |
use std::io; | |
// @dev rand is a package/dependency added later through toml | |
use rand::Rng; | |
// @dev main is the entry point in the rust program | |
fn main(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here's how we would access our contract: | |
var abi = /* abi generated by the compiler */ | |
var ZombieFactoryContract = web3.eth.contract(abi) | |
var contractAddress = /* our contract address on Ethereum after deploying */ | |
var ZombieFactory = ZombieFactoryContract.at(contractAddress) | |
// `ZombieFactory` has access to our contract's public functions and events | |
// some sort of event listener to take the text input: | |
$("#ourButton").click(function(e) { | |
var name = $("#nameInput").val() |