Skip to content

Instantly share code, notes, and snippets.

View edgabaldi's full-sized avatar
🏠
Working from home

Edgar Gabaldi edgabaldi

🏠
Working from home
View GitHub Profile
@edgabaldi
edgabaldi / navigation.py
Created November 12, 2012 11:43 — forked from elyezer/navigation.py
Template tag to add active class in navigation links
<!-- Specific path, only when visiting /accounts/ -->
<li class="{% active request "^/accounts/$" %}"><a href="/accounts/">Accounts</a></li>
<!-- Glob path, when visiting /blog/* example /blog/, /blog/post1/, /blog/post2/, /blog/post2/subitem/, ... -->
<li class="{% active request "^/blog/" %}"><a href="/blog/">Blog</a></li>
from unittest import TestCase
from mock import patch, Mock
from matriz import Matriz
class MatrizTest(TestCase):
@patch('matriz.Matriz.inicializar_matriz')
def test_intancia_matriz(self, method):
method.return_value = 'matriz'
select.form-control + .chosen-container.chosen-container-single .chosen-single {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.428571429;
color: #555;
vertical-align: middle;
background-color: #fff;
@edgabaldi
edgabaldi / book_reco.ipynb
Last active August 31, 2015 22:57 — forked from mickaellegal/book_reco.ipynb
iPython Notebook: Blog book recommendation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@edgabaldi
edgabaldi / deploy-keys.md
Created April 15, 2019 14:54 — forked from holmberd/deploy-keys.md
Setup GitHub repository SSH deploy keys

Setup GitHub repository SSH deploy keys

  1. Create GitHub repository in github and save the SSH repository url

  2. Init git on server in code directory

  • git init
  1. Create SSH keys on the server
  • ssh-keygen -t rsa -b 4096 -C your@email.here
  • Rename the key that doesn't end with .pub to repo-name.deploy.pem