This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or 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
// Mapeando arrays | |
var scores = [2, 4, 6, 8, 10]; | |
var newScores = scores.map(score => score * 3); | |
console.log(newScores); // [6, 12, 18, 24, 30] | |
// Interpolando dados em uma string | |
var name = "John Connor"; | |
var message = "I came from future!"; | |
var template = ` | |
<p> |
This file contains hidden or 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
Every single (unit) test should be compose by: | |
- Test setup | |
- Calling the tested method | |
- Asserting | |
Every single feature should be explain by: | |
- |
This file contains hidden or 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
version: '2' | |
services: | |
### Workspace Utilities Container ########################### | |
workspace: | |
build: | |
context: ./workspace | |
args: |
This file contains hidden or 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
<?php | |
/* | |
Template Name: Event list | |
*/ | |
get_header(); | |
?> |
This file contains hidden or 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
Reducers: | |
-> Represent the entire application state: | |
-> Previous state | |
-> Dispatching action | |
-> New state |
This file contains hidden or 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
function multiply(a) { | |
return (b) => { | |
return (c) => { | |
return a * b * c | |
} | |
} | |
} | |
console.log(multiply(1)(2)(3)) // 6 |
This file contains hidden or 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
Tom Mitchell provides a more modern definition: "A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E." | |
Linear Regression= Straigh line draw by the machine using set of data points | |
Polynomial regression = Non linear data points, curved line to fit better | |
Linear logistic regression = spam example, two different groups | |
Supervised learning = Train the model by giving it examples and guiding it to the right answers. |
This file contains hidden or 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
version: "3" | |
networks: | |
kong-net: | |
driver: bridge | |
services: | |
####################################### | |
# Postgres: The database used by Kong |
This file contains hidden or 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
async function functionName (arguments) { | |
// Do something asynchronous | |
} | |
const functionName = async (arguments) => { | |
// Do something asynchronous | |
} | |
jeffBuysCake('black forest') | |
.then(partyAsPlanned) |