Skip to content

Instantly share code, notes, and snippets.

View lavaldi's full-sized avatar
💛
Diving into JavaScript

Claudia Valdivieso lavaldi

💛
Diving into JavaScript
View GitHub Profile
@lavaldi
lavaldi / git-rebase.md
Last active October 27, 2015 16:19
How to make a rebase?

First commit the changes from your local branch

git add .
git commit -m 'fix(about): something'

Switch to the branch with which you will do the rebase

git checkout {other-branch}
git pull origin {other-branch}
@lavaldi
lavaldi / css-background-size.css
Last active August 29, 2015 13:56
Perfect Full Page Background Image
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='.myBackground.jpg', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='myBackground.jpg', sizingMethod='scale')";
}
@lavaldi
lavaldi / elementos-vacios-jquery.js
Created February 15, 2014 01:58
Comprobar si Hay Elementos Vacíos con jQuery
$('*').each(function() {
if ($(this).text() == "") {
//Aquí Tu Código
}
});
/* devuelve True o False si el elemento esta vacío. */
var emptyTest = $('#myDiv').is(':empty');
@lavaldi
lavaldi / Ajustar-div-al-contenido.markdown
Last active August 29, 2015 13:56
A Pen by Claudia.
#Instala django-disqus
pip install django-disqus
#ó descarga django-disqus.tar.gz de http://pypi.python.org/pypi/django-disqus/
#descomprímelo y córrelo con
python setup.py install
#Luego en setting.py agrega lo siguiente:
INSTALLED_APPS = (
...