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
$(document).ready | |
( | |
function() | |
{ | |
} | |
); |
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
function AjaxRequest(args) | |
{ | |
try | |
{ | |
$.ajax | |
( | |
{ | |
url: "arquivo.php", | |
type: "POST", | |
data: |
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
function Log($texto) | |
{ | |
$tw = $texto; | |
if (is_array($texto)) | |
{ | |
ob_start(); | |
print_r($texto); | |
$tw = ob_get_contents(); | |
ob_end_clean(); | |
} |
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
switch ($i) | |
{ | |
case 0: | |
echo "i equals 0"; | |
break; | |
case 1: | |
echo "i equals 1"; | |
break; | |
case 2: | |
echo "i equals 2"; |
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
function setToCenterOfParent(obj, parentObj) | |
{ | |
var height = $( obj ).height(); | |
var width = $( obj ).width(); | |
if ( parentObj == window ) { | |
$( obj ).css( 'top', ( $( parentObj ).height() / 2 ) - ( height / 2 ) ); | |
$( obj ).css( 'left', ( $( parentObj ).width() / 2 ) - ( width / 2 ) ); | |
} | |
else { | |
$( obj ).css( 'top', ( $( parentObj ).height() / 2 ) - ( height / 2 ) + $( parentObj ).position().top ); |
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
<? | |
function GetFileParts($file_name) | |
{ | |
$tmp = explode("/", $file_name); | |
$_filename = array_pop($tmp); | |
$tmp = explode(".", $_filename); | |
$ext = array_pop($tmp); | |
$fil = substr($_filename, 0, ((strlen($ext)+1) * -1)); | |
$r = array(); | |
$r["name"] = $fil; |
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
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> |
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
Math.floor(Math.random()*1980).toString(); |
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
try | |
{ | |
} | |
catch (Exception $e) | |
{ | |
echo $e->getMessage(); | |
} |
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
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script> |
OlderNewer