#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 = ( | |
... |
$('*').each(function() { | |
if ($(this).text() == "") { | |
//Aquí Tu Código | |
} | |
}); | |
/* devuelve True o False si el elemento esta vacío. */ | |
var emptyTest = $('#myDiv').is(':empty'); |
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')"; | |
} |
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}
This is a copy paste of npm-global-without-sudo.md by sindresorhus
npm
installs packages locally within your projects by default. You can also install packages globally (e.g. npm install -g <package>
) (useful for command-line apps). However the downside of this is that you need to be root (or use sudo
) to be able to install globally.
Here is a way to install packages globally for a given user.
Update or, if you haven't already, install Google Chrome
sudo apt-get update
sudo apt-get install google-chrome-stable
#Debian and Ubuntu based Linux distributions
Also including: Linux Mint, Linux Mint Debian Edition (LMDE), elementaryOS and others.
Node.js is available from the NodeSource Debian and Ubuntu binary distributions repository (formerly Chris Lea's Launchpad PPA). Support for this repository, along with its scripts, can be found on GitHub at nodesource/distributions.
NOTE: If you are using Ubuntu Precise or Debian Wheezy, you might want to read about running Node.js >= 4.x on older distros.
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
{ | |
"env": { | |
"es6": true, | |
"browser": true, | |
"node": true | |
}, | |
"globals": { | |
"jQuery": true, | |
"$": true | |
}, |