Skip to content

Instantly share code, notes, and snippets.

View danieldsf's full-sized avatar

Daniel Farias danieldsf

  • Ion Systems
  • Parnaíba - PI - Brazil
  • 18:26 (UTC -03:00)
View GitHub Profile
test
text
traffic
12
11/12/1995
11-11-1995
3i
3.89
3,89
/**
* BasicHTTPClient.ino
*
* Created on: 24.05.2015
*
*/
#include <Arduino.h>
#include <ESP8266WiFi.h>
<?php
class ManipulaPython{
private $arquivo;
private $diretivaInicial = "python";
private $argumentos = [];
public $isRunnable = false;
function __construct($arquivo = null){
if($arquivo){
<?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
<?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;
}
<?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;
#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];
}
<?php
#$emailsender = "seu.email@aqui";
#if(!isset($_POST[Submit])) die("Nao recebi nenhum parametro. Por favor volte ao formulario.html antes");
/* Medida preventiva para evitar que outros domínios sejam remetente da sua mensagem. */
if (preg_match('/(tempsite.ws$|locaweb.com.br$|hospedagemdesites.ws$|websiteseguro.com$)/', $_SERVER[HTTP_HOST])) {
$emailsender='seu@e-mail.com.br';
} else {
$emailsender = "webmaster@" . $_SERVER[HTTP_HOST];
Ajax Reverso:
https://www.youtube.com/watch?v=10VwHHxBPp4#t=16
Ajax Pooling:
https://www.youtube.com/watch?v=XZlXnEac8Gg
Instalando ArduinoDocs:
@danieldsf
danieldsf / README-Template.md
Created June 23, 2018 19:42 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites