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
import fl.video.VideoEvent; | |
fl_video.autoRewind = true; // fl_video being the name of the video component | |
fl_video.addEventListener(VideoEvent.AUTO_REWOUND, doLoop); | |
function doLoop(e:VideoEvent):void | |
{ | |
e.target.play(); | |
} |
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
/* | |
taken from http://www.dustindiaz.com/top-ten-javascript | |
*/ | |
function getElementsByClass(searchClass,node,tag) { | |
var classElements = new Array(); | |
if ( node == null ) | |
node = document; | |
if ( tag == null ) | |
tag = '*'; | |
var els = node.getElementsByTagName(tag); |
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
<?php | |
/* | |
list all the files with extension nn on a folder | |
the first parameter of glob is a regex to match files. | |
you can do: | |
path_to_dir/*.html | |
to select all the .html files in the path_to_dir folder | |
*NOTE:* the regex on glob is case sensitive |
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
<?php | |
/**************************************************************************** | |
PHP CURL functions for getting data or asytnchronously saving it to file. | |
It is header redirect tolerant. like the 302 http status. | |
Save data to file with cURL: save_data_to_file_w_curl($url,$pathToFile); | |
Get data with cURL get_data_w_curl($url); | |
/** | |
* MIT License |
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
<?php | |
/* | |
Class PagoWebPay | |
Versión: 0.1 | |
Autor: Agustín Amenabar, @baamenabar (es) @ImINaBAR (en) | |
Licencia: MIT | |
parámetros: | |
$rdb: instancia de un objeto PDO ya inicializado, en su defecto, la clase se conectará sola, si es que se entregan los datos de conexión en el parámetro $configuracionClase. | |
$carpetaCGI : Dirección de carpeta CGI de transbank. Es importante dar la dirección correcta en cada instanciación, a veces uno tiene scripts en diferentes direcciones relativas con respecto a la carpeta CGI. |
NewerOlder