Objetivo: Resolver problemas técnicos com clareza, raciocínio estruturado e justificação de escolhas.
Recursos recomendados:
| #include <stdio.h> | |
| /*************************** | |
| * Estratégias de cálculo * | |
| *************************** | |
| * | |
| * Essas funções devem retornar void e receber dois int como parametros | |
| * Por quê? Veja o próximo comentário... | |
| * | |
| */ |
| #!/bin/bash | |
| # Deploys project to WebDAV-compliant server | |
| # Uses a package.json for semantic versioning | |
| # Requires: curl, jq | |
| # Required env vars: | |
| # WEBDAV_REMOTE: remote url of WebDAV-compliant server. Protocol and path included | |
| # WEBDAV_PROJECT: project name | |
| # WEBDAV_USER: basic auth/digest user name |
| ++++++++++ | |
| [ | |
| >+++++++++++ | |
| >++++++++++ | |
| >++++++++++++ | |
| >+++++++++++ | |
| >+++++++++++ | |
| >+++++ | |
| >+++++++++++ | |
| >+++++++++++ |
| " | |
| " Author: Vitor Mattos <[email protected]> | |
| " | |
| " My favorite VIM theme | |
| " Based on Lucario: https://github.com/raphamorim/lucario | |
| " | |
| " | |
| set t_Co=256 |
| #!/bin/sh | |
| # | |
| # Author: Vitor Mattos <[email protected]> | |
| # | |
| # Shell script that configures gnome-terminal to use my custom theme | |
| # based on X::DotShare. Written for Ubuntu 11.10, tested on Ubuntu 14.04 | |
| # | |
| # Works for gnome-terminal < 3.8 | |
| #BLACK |
| function sleep(seconds) | |
| { | |
| var e = new Date().getTime() + (seconds * 1000); | |
| while (new Date().getTime() <= e) {} | |
| } | |
| var Obj = function() { | |
| this.fn = function(arg) { | |
| console.log('Long operation zzzz...'); | |
Para consumir os dados servidos pelo servidor usando Ajax, podemos usar o CORS (Cross-Origin Resource Sharing). Ele consiste de 2 headers, um na requisiçáo e um na resposta.
Setando header Access-Control-Allow-Origin com JAX-RS:
// Alteraramos o método buscaPagamento para usar um ResponseBuilder
// e setar o header