- What will this print out and why?
console.log(0.1 + 0.2);
console.log((0.1 + 0.2) === 0.3);
- Describe what the
'use strict';
expresion does
#!/bin/bash | |
MODEL=$1 | |
BASE_MODELS_FOLDER="common/models" | |
MODELS_FOLDER="$BASE_MODELS_FOLDER/$1" | |
# Infer the name of the model instance to use inside the JS code, | |
# from the model name in the file: book -> Book, some-model -> SomeModel | |
MODEL_INSTANCE="$(echo $MODEL | sed -r 's/(^|-)([a-z])/\U\2/g')" | |
mkdir -p\ | |
$MODELS_FOLDER/remote-hooks\ |
Recommended snack and song:
Have a lovely bowl of rice pudding while listening to [Auto!Automatic!!]
Loopback is amazing at REST API Service, and create-react-app is a neat little CLI that generates a solid starting point for a SPA (single page application). But, putting them together can be... tricky!
Nevertheless, we'll give it a shot.
Recommended snack and song:
Sliced bananas and strawberries with granola all mixed in a bowl of natural yogurt while listening to [Royal Blood]
When you hear about blockchain, you normally think of a publicly available ledger, on a worldwide distributed network of peers that have an agreement strategy to include new blocks (or transactions) on the blockchain. This is OK for most applications, but what happens when you need to take advantage of the blockchain technology but don't want your data to be scattered around in the world? What happens when there's sensible data that if made public, could potentially hurt your business interests?
Enter [Hyperledger Fabric]. An open-source blockchain framework implementation hosted by [The Linux Foundation], which you can use to host your very own and very private blockchain. You can read more about it on their website, and perhaps even [watch this intro video] which makes it a bit easier to un
Recommended snack and song:
220ml of dark roasted full bodied coffee brewed in french press accompanied by a banana while listening to [Liquid Tension Experiment]
tl;dr: You can go ahead and clone [this repo], it's got the end result of this in-depth tutorial bellow.
Here's what we will be doing for becoming smart-contract heroes! - Install the dev environment plus MetaMask. - Develop a very simple voting smart contract.
select 'drop table if exists "' || tablename || '" cascade;' | |
from pg_tables | |
where schemaname = 'public'; -- or any other schema |
I hereby claim:
To claim this, I am signing this object:
FROM node:12-slim as builder | |
WORKDIR /usr/src/app | |
COPY package.json . | |
COPY yarn*.lock . | |
RUN yarn --frozen-lockfile |
const getHeaders = (tableRow) => | |
Array | |
.from(tableRow.querySelectorAll('td')) | |
.map(header => header.innerText); | |
const getTableRows = (tableElement) => | |
Array | |
.from( | |
tableElement | |
.querySelectorAll('tr') |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |