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 / Ajustar-div-al-contenido.markdown
Last active August 29, 2015 13:56
A Pen by Claudia.
@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 / 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}
#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 = (
...
@lavaldi
lavaldi / update-chrome.md
Created March 12, 2016 16:07
Update Chrome browser

Update or, if you haven't already, install Google Chrome

sudo apt-get update
sudo apt-get install google-chrome-stable
@lavaldi
lavaldi / install-nodejs-ubuntu.md
Created March 12, 2016 16:12
Install node.js in Ubuntu

#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
@lavaldi
lavaldi / .eslintrc.json
Last active April 19, 2016 19:30
Task of gulp to pass ES6 to ES5 with ESLint
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"globals": {
"jQuery": true,
"$": true
},
@lavaldi
lavaldi / standards.md
Last active May 10, 2016 19:14 — forked from anareyna/standards.md
Estándares

Diccionario

  • Camel case:

    • Ejm: elementName
  • Snake case:

    • Ejm: element_name

Prefijos comunes

@lavaldi
lavaldi / download_images.md
Created April 14, 2017 22:35
Descargar imágenes de una web

wget -nd -H -p -A jpg,jpeg,png,gif -e robots=off http://web.com

For Mac

brew install youtube-dl
brew install ffmpeg
youtube-dl https://egghead.io/courses/course_name