Skip to content

Instantly share code, notes, and snippets.

View Villanuevand's full-sized avatar
👋
Hola,

Andrés Villanueva Villanuevand

👋
Hola,
View GitHub Profile
@Villanuevand
Villanuevand / data.json
Created July 22, 2016 12:31
Información del CV de Angel Cruz...
{
"basics": {
"name": "Angel Cruz",
"label": "Frontend Developer",
"picture": "http://2.gravatar.com/avatar/b5a93f6390e4bdb85a484d15b549d467",
"email": "[email protected]",
"phone": "(000) 000-0000",
"website": "http://abr4xas.org",
"summary": "Front End Web Developer, ágil y pro-activo con amplía experiencia en creación de sitios web óptimos. Entusiasta HTML5 y CSS3, actualmente en los caminos JavaScript (Angular JS, Node.JS). Estoy en continua formación para mejorar y ampliar los conocimientos que he obtenido durante tantos años en este medio. ",
"location": {
@Villanuevand
Villanuevand / use-image-drive.md
Last active August 3, 2019 15:56
How to use hosted in Google Drive...

http://drive.google.com/uc?export=download&id=XXXXXXXXXXXXXXXXXXXXXXXX

https://drive.google.com/uc?export=view&id=XXXXXXXXXXXXX

@Villanuevand
Villanuevand / vanilla-not-jquery.js
Created May 4, 2016 19:28 — forked from TexRx/vanilla-not-jquery.js
Pure JS alternatives to common CSS class jQuery functions
function hasClass(elem, className) {
return new RegExp(' ' + className + ' ').test(' ' + elem.className + ' ');
}
function addClass(elem, className) {
if (!hasClass(elem, className)) {
elem.className += ' ' + className;
}
}
@Villanuevand
Villanuevand / readme.md
Created April 26, 2016 20:02 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

@Villanuevand
Villanuevand / baseHtml5.sublime-snippet
Last active August 13, 2020 10:15
Snippet para Sublime - Estructura base HTML5
<snippet>
<content><![CDATA[
<!doctype html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Angular Materia introducción</title>
<meta name="description" content="Título de la página.">
<meta name="author" content="Andrés Villanueva">
@Villanuevand
Villanuevand / getSiteCookie.js
Created June 19, 2015 14:33
Verifica que exista una Cookie activa, y dispara un evento al detectarla.
/*
Script.JS
Cookie
- Nombre: _CookieTMP_Homepage_
- Valor: homepage_active
Importante cambiar el valor de la variable 'homepage' para realizar el debugin
del script.
*/
@Villanuevand
Villanuevand / getBancos.js
Last active August 29, 2015 14:23
Obtener toda la información del listado de bancos en https://www.asobanca.com.ve/site/home.php
/**
* Instrucciones de USO.
* - Ir a https://www.asobanca.com.ve/site/home.php.
* - Presionar F12 para abrir DevTools.
* - Abrir consola y pegar este script!
* - Presionar ENTER.
* - copiar resultado y utilizar para cosas geniales!
*/
var c = document.getElementsByClassName('awMenuComiteesLink'),
@Villanuevand
Villanuevand / get-members-info.js
Last active August 29, 2015 14:21
Snippet que obtiene información de los miembros de la comunidad en Google Groups.
/**
* Pequeño snippet para obtener direcciones de correo electrónico
* de miembros en Google Groups, desde la vista "Todos los Miembros".
*/
var c = document.getElementsByClassName('gdf-tableRow'),
members = [];
for(var i = 0; i< c.length; i++){
var o = {};
o.name = c[i].childNodes[1].textContent;
@Villanuevand
Villanuevand / fechaDescriptiva.js
Last active August 29, 2015 14:01
Pequeña funcion javascript para obtener un formato de fecha que comprenda el patrón: Miercoles 28 de Mayo del 2014. (día de la semana, día del mes, mes y año actual).
/**
* Pequeña funcion javascript para obtener un formato de fecha que comprenda el patrón:
* día de la semana, día del mes, mes y año actual.
* Ejemplo: Miercoles 28 de Mayo del 2014.
*
* This is a little javascript function to get the date with the follow pattern:
* day of the week, day of the month, month and currently year.
* Example: Wednsneday, May 28th of 2014.
*/
@Villanuevand
Villanuevand / evitaEnter.js
Created April 3, 2014 18:12
Una pequeña función Js, para, como su nombre lo dice evitar se presione la tecla "Enter"
function evitarEnter(event) {
var event = (event) ? event : ((event) ? event : null);
var node = (event.target) ? event.target : ((event.srcElement) ? event.srcElement : null);
if ((event.keyCode == 13) && (node.type == "text")) {
alert('Enter Desactivado');
return false;
}
}