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
/*! | |
* Integrantes: | |
* - Anderson Fraga | |
* - Teu Solano | |
* - Thiago Garcia | |
* |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <conio.h> | |
#include <io.h> |
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 | |
class NoticiaConteudoController extends RestritoController { | |
function dependency() { | |
return Array( | |
'noticia' => '@NoticiaConteudoModel', | |
'autor' => '@AutorModel', | |
); | |
} |
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 | |
function eratostenes_sieve($number) { | |
$num_max = floor(sqrt($number)); | |
$list = range(2, $number); | |
for($x = 2; $x <= $num_max; $x++) { | |
foreach($list as $_k => $_val) { | |
if($_val != $x and $_val % $x == 0) { | |
unset($list[$_k]); |
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 | |
$x1 = (float) "111111111111111111111111111111111111111111111111111111112"; | |
$x2 = (float) "111111111111111111111111111111111111111111111111111111111"; | |
var_dump($x1); | |
var_dump($x2); | |
if($x1 == $x2){ | |
echo "iguais"; | |
} |
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 | |
namespace App; | |
use Restsym/Controller; | |
use Restsym/Controller/RespondTo; | |
use App/News/Repository as DataNews; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
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
$j(document).ready(function() { | |
counter_img = 1; | |
setInterval(function() { | |
if(++counter_img > 4) { | |
counter_img = 1; | |
} | |
$j('#topo > h1').animate({ | |
opacity: '0.8' |
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
export PATH=$HOME/local/bin:$PATH | |
#colors | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxegedabagaced | |
#customize output shel | |
parse_git_branch () { | |
git name-rev HEAD 2> /dev/null | sed 's#HEAD\ \(.*\)#(git \1)#' | |
} |
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
sudo yum install php53u php53u-cli php53u-gd php53u-common php53u-devel php53u-mbstring php53u-mysql php53u-pdo php53u-pecl-apc php53u-pecl-apc-debuginfo php53u-xml php53u-xmlrpc php53u-intl git-all |
OlderNewer