- Slides https://drive.google.com/open?id=0B-v42hw-YyJoSmNzTXl6Y2dWVGM
- Passo-a-passo https://gist.github.com/wcalderipe/c67dc617a36d6bfd9cbc
Repositório do projeto no Github: https://github.com/wcalderipe/minicurso-angularjs-rherbie
<?php | |
class RolesTable extends CakeMigration { | |
/** | |
* Migration description | |
* | |
* @var string | |
*/ | |
public $description = 'roles_table'; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Minicurso de AngularJS</title> | |
</head> | |
<body> | |
<script src="scripts/angular.js"></script> | |
</body> | |
</html> |
Repositório do projeto no Github: https://github.com/wcalderipe/minicurso-angularjs-rherbie
const createTimeoutPromise = (time) => new Promise((resolve) => { | |
setTimeout(() => { | |
console.log(`resolved after ${time} secs`) | |
resolve(time) | |
}, time) | |
}) | |
console.log('creating promises') | |
const promiseB = createTimeoutPromise(2000) | |
const promiseC = createTimeoutPromise(3000) |
{ | |
"books": [ | |
{ | |
"title": "Some awesome book in the internet", | |
"author": "John Doe", | |
"cover": "http://placehold.it/158x200" | |
}, | |
{ | |
"title": "Some awesome book in the internet", | |
"author": "John Doe", |
const flightBuilder = () => { | |
let flight = {} | |
const builder = { | |
withFlightCode: (flightCode) => { | |
flight.flightCode = flightCode | |
return builder | |
}, | |
withStops: (stops) => { |
let value = 1 | |
const addOne = () => value + 1 | |
addOne() // 2 | |
addOne() // 3 |
const addOne = (value) => value + 1 | |
addOne(addOne(1)) // 3 |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Reference: