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
package rinaldi.array | |
{ | |
import rinaldi.string.isInString; | |
/** | |
* | |
* Search something inside an array, using filters similars to "LIKE" filters from Oracle. | |
* The search is case sensitive! | |
* | |
* @param p_arr Data provider. |
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
# Remove SVN files from any folder | |
rm-svn-files() { | |
find "$1" -name *.svn | xargs rm -rf | |
} |
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
# Check if there's any .svn file into some folder | |
has-svn-files() { | |
if [[ `find $1 -name *.svn` = "" ]]; then | |
echo "false" | |
else | |
echo "true" | |
fi | |
} |
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
package rinaldi.utils { | |
import mx.controls.DataGrid; | |
/** | |
* | |
* Util to remove DataGrid items. | |
* | |
* @param p_grid DataGrid instance. | |
* @param p_indices Indices to be removed. |
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
package rinaldi.array { | |
/** | |
* | |
* Sort unidimensional arrays. | |
* The funcionality of this method is based in one technique teached in ActionScript 3.0 Cookbook. | |
* | |
* @param p_array Array to sort. | |
* | |
* @return A sorted array. |
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
package rinaldi.util | |
{ | |
import flash.utils.Dictionary; | |
/** | |
* | |
* Util to loop any array items. | |
* | |
* @param p_data An array with all the items or just a number of loops needed. | |
* @param p_function Function to be fired on every data occurrences. | |
* |
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
package rinaldi.util | |
{ | |
/** | |
* | |
* Useful method to fire a function without be careful about null pointer exception. | |
* | |
* @param p_function Function to be fired. | |
* @param args A list of parameters. | |
* | |
* @example |
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
package rinaldi.display | |
{ | |
/** | |
* | |
* Replace one display object for another one. | |
* | |
* @param p_scope Scope of the items. | |
* @param p_oldObject Object to be replaced. | |
* @param p_newObject New object to replace the old object. |
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
package rinaldi.display | |
{ | |
import flash.display.BitmapData; | |
import flash.display.DisplayObject; | |
import flash.geom.Rectangle; | |
/** | |
* | |
* This method returns a Rectangle with the real visual DisplayObject bounds. | |
* |
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
package rinaldi.util { | |
import flash.utils.getQualifiedClassName; | |
/** | |
* | |
* Just check if an object is a Vector instance or not. | |
* | |
* @param p_object Object to be checked. |
OlderNewer