Skip to content

Instantly share code, notes, and snippets.

View SebastianDevelops's full-sized avatar
💭
Always Learning

Sebastian Van Rooyen SebastianDevelops

💭
Always Learning
View GitHub Profile
@laboon
laboon / substrate-workshop-commands.md
Last active September 13, 2022 10:16
Commands for "Build Your Own Blockchain with Substrate"

Setup Instructions

git clone https://github.com/paritytech/substrate
cd substrate/node-template
git checkout 53df5619c0273ef226ed9a470ca863d212ac917c
./scripts/init.sh
./scripts/build.sh
cargo build
cd ..
@horeaporutiu
horeaporutiu / conversation.js
Last active January 3, 2022 16:05
Call external API (Watson Translate) and return a promise
var request = require("request");
function translate(userInput) {
return new Promise((resolve, reject) => {
var data = {};
//Translate from en -> es (English to Spanish)
data.source = "en";
data.target = "es";