Skip to content

Instantly share code, notes, and snippets.

@EduardoMRB
EduardoMRB / gulpfile.js
Last active September 10, 2015 15:12
Gulpfile with browsersync serving assets withou refresh.
var gulp = require("gulp"),
concat = require("gulp-concat"),
minify = require("gulp-minify-css"),
sass = require("gulp-sass"),
sourcemaps = require("gulp-sourcemaps"),
rename = require("gulp-rename"),
php = require("gulp-connect-php"),
gulpif = require("gulp-if"),
env = process.env.NODE_ENV || "dev";
@EduardoMRB
EduardoMRB / post-receive
Last active August 29, 2015 14:22
PHP deploy skeleton
#!/bin/bash
set -e
# file: hooks/post-receive inside git repository.
$WORK_DIR=path/to/work/directory
$GIT_DIR=path/to/git/directory
git --work-tree=$WORK_DIR --git-dir=$GIT_DIR checkout -f

Guia de uso da API

Requisições

URL Descriçào
/api/v1/candidate/:cargo Lista os candidados por cargo
/api/v1/candidate/:cargo/votes/:abrangencia?limit=n Informações de votos para cargo e abrangência específica

Tabelas para referencia