Skip to content

Instantly share code, notes, and snippets.

View gabeborges's full-sized avatar

Gabriel Carpenedo gabeborges

  • Toronto, ON - Canada
View GitHub Profile
@gabeborges
gabeborges / Bootstrap navbar to slim
Created August 29, 2016 18:42
A simple translate of bootstrap navbar html to slim
/ Add .navbar-fixed-top or navbar-fixed-bottom to make it fixed
/ Add .navbar-static-top to scroll away with the page
/ Add .navbar-inverse to change the color
nav.navbar.navbar-default
/ Change to .container if you don't want it fluid
.container-fluid
/ Brand and toggle get grouped for better mobile display
.navbar-header
button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"
span.sr-only Toggle navigation
#create a new branch
git checkout -b branch-name
#before pushing
git checkout master
git pull origin master
#it goes for the last branch used
git checkout -
#it will show conflicts
git rebase master
GIT CONFIG:
$git config --global user.name “username”
$git config --global user.email [email protected]
#setup your Git User Account. You need to have a git account in order to do it
GENERATE SSH KEY:
https://help.github.com/articles/generating-ssh-keys
INITIALIZING:
$mkdir projectname