Skip to content

Instantly share code, notes, and snippets.

View iamlucianojr's full-sized avatar
👨‍💻
If you want to go fast, go alone. If you want to go far, go with others.

Luciano Jr iamlucianojr

👨‍💻
If you want to go fast, go alone. If you want to go far, go with others.
View GitHub Profile
<!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">
// 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>
Every single (unit) test should be compose by:
- Test setup
- Calling the tested method
- Asserting
Every single feature should be explain by:
-
version: '2'
services:
### Workspace Utilities Container ###########################
workspace:
build:
context: ./workspace
args:
@iamlucianojr
iamlucianojr / gist:7fe2c06189bfc2d7e3023deb67acfd72
Created March 1, 2017 20:51
How to list custom post type and custom fields on WP
<?php
/*
Template Name: Event list
*/
get_header();
?>
Reducers:
-> Represent the entire application state:
-> Previous state
-> Dispatching action
-> New state
function multiply(a) {
return (b) => {
return (c) => {
return a * b * c
}
}
}
console.log(multiply(1)(2)(3)) // 6
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.
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
async function functionName (arguments) {
// Do something asynchronous
}
const functionName = async (arguments) => {
// Do something asynchronous
}
jeffBuysCake('black forest')
.then(partyAsPlanned)