Skip to content

Instantly share code, notes, and snippets.

(function(document){
var script = 'script',
twitterWidgets = document.createElement(script),
lastScript = document.getElementsByTagName(script)[0];
twitterWidgets.async = twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
lastScript.parentNode.insertBefore(twitterWidgets, lastScript);
})(document);
// compressed 177 bytes
@vmeli
vmeli / Comandos git.txt
Created July 4, 2018 21:37 — forked from MacoChave/Comandos git.txt
Comandos de uso para git y github.
-----------------------------------------------------
GIT
-----------------------------------------------------
--------------------CONFIGURAR GIT-------------------
git config --global user.name ->OBTIENE O ESTABLECE EL USER NAME
git config --global user.email ->OBTIENE O ESTABLECE EL USER EMAIL
git config --global color.ui true ->ESTABLECE TRUE O FALSE PARA COLOREAR LOS CAMBIOS
git config --global --list ->LISTA LAS CONFIGURACIONES HECHAS
@vmeli
vmeli / site.js
Created March 17, 2018 17:42 — forked from eendaworks/site.js
Javascript para calcular el tamaño de la ventana del navegador
function tamVentana() {
var tam = [0, 0];
if (typeof window.innerWidth != 'undefined')
{
tam = [window.innerWidth,window.innerHeight];
}
else if (typeof document.documentElement != 'undefined'
&& typeof document.documentElement.clientWidth !=
'undefined' && document.documentElement.clientWidth != 0)
{
@vmeli
vmeli / canvas-blur-image.js
Created September 3, 2017 23:42 — forked from 6174/canvas-blur-image.js
canvas image blur
/**
* Light layer on top of a canvas element to represent an image displayed
* within. Pass in a canvas element and an Image object and you'll see the
* image within the canvas element. Use the provided methods (e.g. blur) to
* manipulate it.
*
* @constructor
* @param {HTMLElement} element HTML canvas element.
* @param {Image} image Image object.
*/
@vmeli
vmeli / events.js
Last active August 31, 2017 02:38
Events-Js
/*
<ol id="list">Lenguajes de programación:
<li>JavaScript</li>
<li>Python</li>
<li>Julia</li>
</ol>
*/
var list = document.getElementById('list');
@vmeli
vmeli / sass-5.css
Last active August 21, 2017 05:05
Generated by SassMeister.com.
/*--- No 5 ---*/
.box {
background: yellow;
}
.box {
width: calc(100% - 30px);
}
.box::after {
@vmeli
vmeli / sass-5-practise.css
Last active August 21, 2017 04:47
Generated by SassMeister.com.
/* Practise sass5*/
.headline {
font-size: 2em;
}
.box {
font-size: 24px;
}
.box p {
font-size: 0.29167em;
@vmeli
vmeli / sass-4-practise.css
Last active August 14, 2017 00:38
Generated by SassMeister.com.
/* Practise sass4*/
/* sassdoc.com ---> documentar sass
jsdoc ---> documentar js
*/
/* PROPORCION
asigna dimensiones en alto y ancho(sug. con js) ---> no usar en flexbox
16:8
padding se calcula respecto al ancho
*/
.cols-6 {
@vmeli
vmeli / sass-4.css
Last active August 13, 2017 19:36
Generated by SassMeister.com.
/*--- No 4 ---*/
.button {
font-size: 2rem;
color: peru;
}
.title {
font-size: 3rem;
line-height: 2.5rem;
color: red;
@vmeli
vmeli / sass-3.css
Last active August 7, 2017 06:06
Generated by SassMeister.com.
/*--- No 3 ---*/
/* comentario visible */
.banner {
width: 300px;
height: 600px;
background-image: url(arbol.png), url(casa.png), url(fondo.png);
background-size: 600px, 900px, cover;
background-repeat: no-repeat;
animation-name: flotar;
animation-duration: 2s;