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> | |
char set[] = {'<', '2', '>', '[', 'C','A', 'T', 'A', 'R', 'I', 'N', 'A' ,']'}; | |
int position = 0; | |
char charByChar(){ | |
if(position < 13){ | |
position++; | |
return set[position-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
<?php | |
App::uses('Component', 'Controller'); | |
App::uses('Folder', 'Utility'); | |
class UploadComponent extends Component{ | |
const MAX_FILES = 4; | |
const DIR = WWW_ROOT.'upload'.DS; | |
public $endereco_atual = null; |
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 | |
#TESTA SE O ARQUIVO EXISTE: | |
$file = "endereco_do_arquivo_url"; | |
$file_headers = @get_headers($file); | |
$existe = true; | |
if($file_headers[0] == 'HTTP/1.1 404 Not Found') { | |
$existe = false; | |
} |
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 | |
App::uses('Component', 'Controller'); | |
#App::uses('Vendor','phpmailer/phpmailer/class.phpmailer'); | |
App::import('Vendor', 'phpmailer', array('file' => 'phpmailer'.DS.'phpmailer'.DS.'PHPMailerAutoload.php')); | |
class MailComponent extends Component { | |
public function send() { | |
$mail = new phpmailer(); | |
//$mail->SMTPDebug = 3; // Enable verbose debug output |
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 ManipulaPython{ | |
private $arquivo; | |
private $diretivaInicial = "python"; | |
private $argumentos = []; | |
public $isRunnable = false; | |
function __construct($arquivo = null){ | |
if($arquivo){ |
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
/** | |
* BasicHTTPClient.ino | |
* | |
* Created on: 24.05.2015 | |
* | |
*/ | |
#include <Arduino.h> | |
#include <ESP8266WiFi.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
test | |
text | |
traffic | |
12 | |
11/12/1995 | |
11-11-1995 | |
3i | |
3.89 | |
3,89 |
NewerOlder