Skip to content

Instantly share code, notes, and snippets.

Bruno Quaresma BrunoQuaresma

Block or report user

Report or block BrunoQuaresma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@BrunoQuaresma
BrunoQuaresma / brazil_cities.json
Created Dec 21, 2017
Todas as cidades brasileiras
View brazil_cities.json
["Acrelândia - AC","Assis Brasil - AC","Brasiléia - AC","Bujari - AC","Capixaba - AC","Cruzeiro do Sul - AC","Epitaciolândia - AC","Feijó - AC","Jordão - AC","Mâncio Lima - AC","Manoel Urbano - AC","Marechal Thaumaturgo - AC","Plácido de Castro - AC","Porto Acre - AC","Porto Walter - AC","Rio Branco - AC","Rodrigues Alves - AC","Santa Rosa do Purus - AC","Sena Madureira - AC","Senador Guiomard - AC","Tarauacá - AC","Xapuri - AC","Água Branca - AL","Anadia - AL","Arapiraca - AL","Atalaia - AL","Barra de Santo Antônio - AL","Barra de São Miguel - AL","Batalha - AL","Belém - AL","Belo Monte - AL","Boca da Mata - AL","Branquinha - AL","Cacimbinhas - AL","Cajueiro - AL","Campestre - AL","Campo Alegre - AL","Campo Grande - AL","Canapi - AL","Capela - AL","Carneiros - AL","Chã Preta - AL","Coité do Nóia - AL","Colônia Leopoldina - AL","Coqueiro Seco - AL","Coruripe - AL","Craíbas - AL","Delmiro Gouveia - AL","Dois Riachos - AL","Estrela de Alagoas - AL","Feira Grande - AL","Feliz Deserto - AL","Flexeiras - AL","Gir
@BrunoQuaresma
BrunoQuaresma / task2.mkd
Last active Feb 1, 2017
Task 2 - Front-End
View task2.mkd

Task 2: build a workout log

The system should cover all the previous use cases.

Additional information

Please, follow this mockup.

You should provide a workout log that works looks this mock, but remmember this is a mock and we are open to new ideas on how it should work.

View Time.js
function Time(str){
"use strict";
var values = str.split(':'),
seconds = parseInt(values[2]),
minutes = parseInt(values[1]),
hours = parseInt(values[0]);
@BrunoQuaresma
BrunoQuaresma / jquery-bootstrap-nav-tabs.js
Last active Dec 31, 2015
You can use links generates by tabs like users/show/2#edit.
View jquery-bootstrap-nav-tabs.js
/**
* Bootstrap Nav Tabs
*
* Completely navigation with tabs and URL.
*/
function navTabs(){
$('*[href=' + window.location.hash + ']').tab('show');
@BrunoQuaresma
BrunoQuaresma / bootstrap-send-form-modal.js
Last active Dec 31, 2015
Simple send form on the Bootstrap modal footer.
View bootstrap-send-form-modal.js
function sendForm(id){
var form = document.getElementById(id);
form.submit();
}
You can’t perform that action at this time.