Skip to content

Instantly share code, notes, and snippets.

View BrunoQuaresma's full-sized avatar

Bruno Quaresma BrunoQuaresma

View GitHub Profile
@BrunoQuaresma
BrunoQuaresma / task2.mkd
Last active February 1, 2017 15:37
Task 2 - Front-End

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.

@BrunoQuaresma
BrunoQuaresma / jquery-bootstrap-nav-tabs.js
Last active December 31, 2015 05:59
You can use links generates by tabs like users/show/2#edit.
/**
* 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 December 31, 2015 05:58
Simple send form on the Bootstrap modal footer.
function sendForm(id){
var form = document.getElementById(id);
form.submit();
}
@BrunoQuaresma
BrunoQuaresma / Time.js
Created December 16, 2014 13:19
Time for JS
function Time(str){
"use strict";
var values = str.split(':'),
seconds = parseInt(values[2]),
minutes = parseInt(values[1]),
hours = parseInt(values[0]);