This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Como no me andaba sketch porque se me venció el coso gratis hice un archivo .sh que cambia la fecha de la compu, abre el sketch y vuelve a poner la fecha actual, capaz a alguien le sirve. | |
Yo lo ejecuto asi: | |
El archivo sketch.sh lo puse en el root de mi compu, en mi caso hdboot/Users/mpunx, que es donde arranca siempre la terminal. | |
Abrí la terminal y escribo: | |
sudo sh sketch.sh | |
Contenido del archivo sketch.sh | |
#!/bin/bash | |
date 0102030405 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# nodereinstall | |
# credit: http://stackoverflow.com/a/11178106/2083544 | |
# | |
# UPDATE: I've converted this gist to a repo: | |
# https://github.com/brock/node-reinstall | |
# | |
# get sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.superLista { | |
margin:0; | |
padding: 0; | |
list-style: none; | |
width:500px | |
} | |
.superLista li { | |
background-color: rgba(0, 0, 0, .1); | |
border: 1px solid rgba(0, 0, 0, .5); | |
margin: 0 0 10px 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.powerHeight = function() { | |
$(this).each(function(){ // Seleccionamos cada uno de los <ul> con el class "superLista" | |
var _h = 0; // _h es la variable del alto que vamos a usar en el plugin | |
$(this).find('li').each(function(i){ //Seleccionamos cada uno de los <li> que esten dentro del <ul class="superLista"> | |
$(this).css({'height': 'auto'}); // Les aplicamos height:auto | |
_h = $(this).outerHeight(); // le damos un valor en pixeles a la variable _h con el alto del <li> | |
$(this).find('span').css({'height': _h}); // le aplicamos al <span> el valor de la variable _h a la propiedad height | |
}); | |
}); | |
return this; // listo, seguimos el loop hasta que no hayan mas .superLista |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="superLista"> | |
<li> | |
<span>Spoiler, img, whatever</span> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> | |
</li> | |
<li> | |
<span>Spoiler, img, whatever</span> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> | |
</li> | |
</ul> |