Skip to content

Instantly share code, notes, and snippets.

View androide-osorio's full-sized avatar

Andrés Osorio androide-osorio

View GitHub Profile

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@androide-osorio
androide-osorio / gist:c7f12a140b08b2be6785
Created August 24, 2014 05:46
curso Backend Profesional mejorando.la: reto 1 Ruby on Rails
#funcion que detecta si una frase(String)
#es un palindromo. Devuelve un error si
#el parametro NO ES una String
def palindromo?(frase)
raise TypeError unless frase.is_a? String
frase_sin_espacios = frase.strip().gsub(/\s+/, "")
frase_sin_espacios == frase_sin_espacios.reverse
end
#-------------------------------------------------------------
@androide-osorio
androide-osorio / gist:00bdf89e15ca9b926c7f
Created August 24, 2014 05:56
curso backend profesional mejorando.la: reto 2 ruby on rails
class Dessert
attr_accessor :name, :size, :calories
def initialize(name, size, calories)
@name = name
@size = size
@calories = calories
@@instance_count += 1
@androide-osorio
androide-osorio / gulpfile.js
Created September 21, 2014 16:11
GulpJS workflow example
/*
Assets Tasks file with Gulp
Uses Gulp as build system. used mainly for watching changes
on the assets and process them to then copy the results into the
public directory
*/
//require gulp and gulp-load-plugins. We then call the gulp-load-plugins task
//to automatically load all installed gulp plugins
var gulp = require("gulp"),
@androide-osorio
androide-osorio / gist:4102706
Created November 18, 2012 01:46
HTML: Stater Template
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div class="container"></div>
</body>
</html>
@androide-osorio
androide-osorio / gist:4102734
Created November 18, 2012 01:50
CSS: Image Replacement
.image-replacement {
border: 0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@androide-osorio
androide-osorio / gist:4102740
Created November 18, 2012 01:52 — forked from padolsey/gist:527683
JavaScript: Detect IE
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@androide-osorio
androide-osorio / gh-pages-deploy.md
Created July 31, 2016 01:21 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@androide-osorio
androide-osorio / sass-functions.scss
Created August 5, 2016 21:04
Useful SASS functions and mixins I keep using all the time build websites and applications
//-----------------------------------------------
// Utility functions
//-----------------------------------------------
// this file contains utility functions used
// throughout the entire SASS project
// @author Andrés Osorio
/// Remove the unit of a length
/// @param {Number} $number - Number to remove unit from
/// @return {Number} - Unitless number
@androide-osorio
androide-osorio / symbols.js
Last active September 9, 2016 15:53
ES2015 Roadtrip to awesomeness: Symbols
/**
______ _____ ___ ___ __ _____ _____ _ _
| ____| / ____| |__ \ / _ \ /_ | | ____| _ / ____| | | | |
| |__ | (___ ) | | | | | | | | |__ (_) | (___ _ _ _ __ ___ | |__ ___ | | ___
| __| \___ \ / / | | | | | | |___ \ \___ \ | | | | | '_ ` _ \ | '_ \ / _ \ | | / __|
| |____ ____) | / /_ | |_| | | | ___) | _ ____) | | |_| | | | | | | | | |_) | | (_) | | | \__ \
|______| |_____/ |____| \___/ |_| |____/ (_) |_____/ \__, | |_| |_| |_| |_.__/ \___/ |_| |___/
__/ |
|___/
*/