Skip to content

Instantly share code, notes, and snippets.

Marcelo de Souza Lima marceloxp

Block or report user

Report or block marceloxp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View switch-case.php
switch ($i)
{
case 0:
echo "i equals 0";
break;
case 1:
echo "i equals 1";
break;
case 2:
echo "i equals 2";
View log-to-file.php
function Log($texto)
{
$tw = $texto;
if (is_array($texto))
{
ob_start();
print_r($texto);
$tw = ob_get_contents();
ob_end_clean();
}
View gist:5731211
function AjaxRequest(args)
{
try
{
$.ajax
(
{
url: "arquivo.php",
type: "POST",
data:
@marceloxp
marceloxp / gist:5731198
Last active Apr 18, 2016
jQuery onReady
View gist:5731198
$(document).ready
(
function()
{
}
);
You can’t perform that action at this time.