Skip to content

Instantly share code, notes, and snippets.

View henvic's full-sized avatar

Henrique Vicente henvic

View GitHub Profile
@henvic
henvic / product-ic.md
Last active August 29, 2015 13:56
product-ic

Funcionamento do serviço de vendas

O serviço funciona através de um aplicativo que pode ser instalado em um celular ou acessado através de um navegador.

Autenticação

Para efetuar uma compra tudo que o usuário precisa é de validar uma conta no Facebook e adicionar um cartão de crédito.

A escolha pelo Facebook é por motivos estratégicos, inclusive porque recentemente, em parcerias com fabricantes de roteadores, o Facebook lançou um serviço para liberar o uso gratuito em redes wi-fi através de login no site do Facebook então usando isso é uma forma de aproximar o publico alvo e divulgar os serviços para o público geral de modo não oneroso e convidativo a novos usuários.

Busca baseada em roteiro

@henvic
henvic / ActorRepoArray.java
Last active August 29, 2015 13:56
ActorRepoArray.java
package Repos.Array;
import Interfaces.ActorRepoInterface;
import Entities.Actor;
public class ActorRepoArray implements ActorRepoInterface {
private Actor[] actors;
@Override
public boolean add(Actor actor) {
@henvic
henvic / .vimrc
Last active August 29, 2015 13:57
my ~/.vimrc
" see https://raw2.github.com/lucasoman/Conf/master/.vimrc
set tabstop=4
set shiftwidth=8
set expandtab
set ttymouse=xterm2
let airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1

Keybase proof

I hereby claim:

  • I am henvic on github.
  • I am henvic (https://keybase.io/henvic) on keybase.
  • I have a public key whose fingerprint is 655A D2F2 D6B0 5751 AA22 4042 D0F4 DFBD 257C 1575

To claim this, I am signing this object:

/*
* Darwin has a low limit for file descriptors (256 per process) by default.
*
* Increase it for this process to avoid an EMFILE error when opening lots of
* files for releasing packages, compressing, etc.
*
* This is a temporary fix while node >= 0.12 isn't out as it is already fixed
* properly in the core.
*
* It uses the posix @ ~1.0.3 library found on the npm registry
@henvic
henvic / Preferences.sublime-settings
Last active August 29, 2015 14:02
Preferences.sublime-settings
{
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"copy_with_empty_selection": false,
"show_full_path": true,
"file_exclude_patterns":
[
"*-coverage.js",
"*-debug.js",
"*-min.js",
"*.a",
public class T2Q1 {
Arquivo io;
int[] coins = new int[] {1, 5, 10, 25, 50};
public void printChange(int change, int[] amounts) {
int amountCoins = 0;
int length = amounts.length;
int pos = length - 1;
int left = change;
int[] used = new int[5];
@henvic
henvic / SeleniumGrid.md
Created July 22, 2014 03:32
Plan to implement a Selenium grid for testing AlloyUI

AlloyUI Selenium Grid Config

Selenium grid configuration for the functional testing of AlloyUI.

Running all the tests on all the environment takes some time. On average it takes 1min to run all the tests on Chrome on a last-generation MacBook Pro. Running on all the browsers we plan to support should take about 1 hour.

Dependencies

<ul class="posts-thumbnail-view results-thumbnail clearfix">
<li>
<a href="/henvic/1340">
<div class="img-place">
<img src="https://d8o390tnhj670.cloudfront.net//unsafe/400x300/73f391c8253d4c969aedb68c928b663c.jpg" alt="picture">
</div>
<p class="post-listing">
<em>Volvo</em> 460 5.7
@henvic
henvic / DNS.markdown
Last active August 29, 2015 14:15
Wireshark labs
$ nslookup sony.jp
Server:		192.168.0.1
Address:	192.168.0.1#53

Non-authoritative answer:
Name:	sony.jp
Address: 72.246.56.107
Name:	sony.jp