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
function multiply(a) {
return (b) => {
return (c) => {
return a * b * c
}
}
}
console.log(multiply(1)(2)(3)) // 6
Reducers:
-> Represent the entire application state:
-> Previous state
-> Dispatching action
-> New state
@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();
?>
version: '2'
services:
### Workspace Utilities Container ###########################
workspace:
build:
context: ./workspace
args:
Every single (unit) test should be compose by:
- Test setup
- Calling the tested method
- Asserting
Every single feature should be explain by:
-
// 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>
<!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">
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.CourseID)
</td>
<td>
@Html.DisplayFor(modelItem => item.Title)
</td>
@iamlucianojr
iamlucianojr / gist:abfc898ae49d71257bb3
Created March 6, 2016 22:14
Quotes to read every day
"Whenever you are sincere you are right".
@iamlucianojr
iamlucianojr / gist:b281baeae38b908586af
Last active January 25, 2016 11:20
Recomendations jobs
{Someone} is a real kind of {kind} Developer. His skills covers all requirements to be a great developer on any team. He was my university professor when I studied at Brazil and I can ensure that your didatic is incredible, so I really think that him is the best person to integrate a multi cultural team where it is really important