This file contains hidden or 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 | |
function stickFile ($file, $x, $y) | |
{ | |
global $dest; | |
$img = imagecreatefromjpeg($file["tmp_name"]); | |
$thumb = imagecreatetruecolor(150, 150); | |
list($width, $height) = getimagesize($file["tmp_name"]); |
This file contains hidden or 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 | |
$HEIGHT = 600; | |
$WIDTH = 1000; | |
$xfactor = 2; 5; | |
$yfactor = 1; 0.001; 0.5; | |
$CENTER_X = $WIDTH/2; | |
$CENTER_Y = 400; |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
struct _element { | |
struct _element *prev, *next; | |
int value; | |
}; | |
struct _column { | |
struct _column *prev, *next; |
This file contains hidden or 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 <stdio.h> | |
#define CIDADES 20 | |
int explorado[CIDADES], | |
localizacoes[CIDADES][CIDADES] = | |
{ | |
{0, 71, -1, -1, -1, -1, -1, -1, -1, 151, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, | |
{71, 0, 75, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, | |
{-1, 75, 0, 118, -1, -1, -1, -1, -1, 140, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, |
NewerOlder