This file contains hidden or 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
// En una composicin llamada "//composition" y una capa llamada "//resize" | |
var w = thisComp.width; | |
var h = thisComp.height; | |
var sx = w*100/thisLayer.width; | |
var sy = h*100/thisLayer.height; | |
[sx,sy] | |
//En la imagen que queremos redimensionar en Transformar->escala, agregamos la siguiente expresión: | |
eval(comp("//Controller").layer("//resize").text.sourceText.toString()) |
This file contains hidden or 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
// En una composición llamada "//Controller" en la capa "//sampling_color" | |
var w = thisLayer.width; | |
var h = thisLayer.height; | |
var color = thisLayer.sampleImage([w,h]/2, [w,h]/2, true,time); | |
color | |
//En la imagen que contiene el area de color a muestrear (cuya capa llamamos "sample" dentro de una composicion "sample0"), en el efecto "Control de Color > Color", agregamos la expresión: | |
eval(comp("//Controller").layer("//sampling_color").text.sourceText.toString()) |
This file contains hidden or 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
Raspberry Docker | |
http://blog.hypriot.com/post/traffic-light/ | |
Node.js en DOcker from the scratch | |
http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html |
This file contains hidden or 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
var animatingSvg = Snap('#wheel_svg'); | |
var wheel = animatingSvg.select('#wheel'); | |
wheel.animate({transform: "r"+[7200,205,210]}, 2000, mina.easeinout); |
This file contains hidden or 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
$.each(options,function(index, value){ | |
options[index].done = true; | |
}) | |
// options es el arreglo a recorrer |
This file contains hidden or 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
options = $.grep(body, function(value, i) { | |
return ( value.categoria == current_categoria ); | |
}); | |
// retorna solo los elementos del arreglo cuya categorìa sea = a current_categoria |
This file contains hidden or 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
<audio id="s0"> | |
<source src="audio/s0.mp3" type="audio/mpeg"> | |
Your browser does not support the audio element. | |
</audio> | |
<audio id="s1"> | |
<source src="audio/s1.mp3" type="audio/mpeg"> | |
Your browser does not support the audio element. | |
</audio> |
This file contains hidden or 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
$el.removeClass(function(index,classes){ | |
var matches = classes.match(/drop-\d+/); // some-class-somenumber | |
return (matches) ? matches.join(' ') : ''; | |
}); |
This file contains hidden or 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
#canvas { | |
position: absolute; | |
z-index: 500; | |
left: 183px; | |
top: 329px; | |
-moz-transform: scale(-1, 1); | |
-webkit-transform: scale(-1, 1); | |
-o-transform: scale(-1, 1); | |
transform: scale(-1, 1); | |
filter: FlipH; |
This file contains hidden or 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
En el index.html (agregar uno por cada botòn, y personalizar id) | |
<div class="selectable option" id="option0"> | |
<label class="text">EJEMPLO</label> | |
</div> | |
En style_custom.css (personalizar background-image, width y height acorde a la imagen a usar, y las posiciones left y top de cada opción) | |
.option | |
{ |
NewerOlder