FloydModificado()
início
para i = 1 até n faça
para j = 1 até n faça
A[i,j] <- D[i,j];
R[i,j] <- 0;
fim para
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
include('otinfo.php'); |
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
$server = new Otinfo('shadowcores.twifysoft.net'); // a porta é opcional: se omitida, o padrão é 7171 |
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
if ($server->execute()) { | |
echo 'Players online: ', $server->players['online'], '<br />', | |
'Server location: ', $server->serverinfo['location'], '<br />', | |
'Client version: ', $server->serverinfo['client'] , '<br />'; | |
//apenas alguns exemplos de dados | |
} else { | |
echo 'Server offline'; | |
//se execute() returnar false, o servidor esta offline | |
} |
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 | |
include('otinfo.php'); | |
$server = new Otinfo('shadowcores.twifysoft.net'); | |
if ($server->execute()) { | |
echo 'Players online: ', $server->players['online'], '<br />', | |
'Server location: ', $server->serverinfo['location'], '<br />', | |
'Client version: ', $server->serverinfo['client'] , '<br />'; | |
} else { | |
echo 'Server offline'; | |
} |
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
private static $cache = 180; // tempo em segundos |
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 | |
if (!defined('IN_IPB')) { | |
print '<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.'; | |
exit(); | |
} | |
class Otinfo { | |
//class that works | |
} |
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
#include <cstdlib> | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <sys/time.h> | |
#include "avl_tree.h" | |
#include "red_black_tree.h" | |
class logradouro { |
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 cleanPreviousIndentation(line) | |
return line:gsub("^%s+", ""):gsub("%s+$", "") | |
end | |
function escapeString(str) | |
return str:gsub("[()]", "%%%1") | |
end | |
function string:split(delimiter) | |
local 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
#!/usr/bin/env php | |
<?php | |
require 'simple_html_dom.php'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); |
OlderNewer