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 | |
require("class.phpmailer.php"); | |
//SMTP Settings | |
$mail = new PHPMailer(); | |
$mail->CharSet = "UTF-8"; | |
$mail->IsSMTP(); | |
$mail->SMTPAuth = true; | |
$mail->SMTPSecure = "tls"; | |
$mail->Port = "25"; |
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
<!DOCTYPE html> | |
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> | |
<!--[if !IE]><!--> | |
<html lang="es"> | |
<!--<![endif]--> | |
<head> | |
<link href="<?php echo $config->urls->templates?>css/responsive-calendar.css" rel="stylesheet"> | |
</head> | |
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 | |
$dt = new DateTime(); $ahora = $dt->format('Y-m-d H:i') | |
$page->children("blog_fecha>=$ahora")->toJSON(); | |
?>; |
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 | |
$var = 0; | |
while ($var>10){ | |
echo "Hola"; | |
$var++; | |
} |
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
// classic way | |
function email_classic($from, $from_name, $to, $to_name, $subject, $message){ | |
$from = $from_name. "<".$from.">\n"; | |
$headers = "From: {$from}". "\n"; | |
$headers .= "Reply-To: {$from}". "\n"; | |
$headers .= "Cc: {$to}\n"; | |
$headers .= "Bcc: {$to}\n"; | |
$headers .= "X-Mailer: PHP/".phpversion()."\n"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Maciej Mensfeld - Calculator</title> | |
<link rel="stylesheet" href="./assets/stylesheets/bootstrap.min.css" /> | |
<link rel="stylesheet" href="./assets/stylesheets/bootstrap-responsive.min.css" /> | |
<link rel="stylesheet" href="./assets/stylesheets/application.css" /> | |
<script src="./assets/javascripts/jquery-1.9.1.js"></script> |
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
<html> | |
<head> | |
<title>Html calculator</title> | |
</head> | |
<body> | |
<form name="calculator" > | |
Solution<input type="textfield" name="ans" value=""> | |
<br> | |
<input type="button" value="1" onClick="document.calculator.ans.value+='1'"> | |
<input type="button" value="2" onClick="document.calculator.ans.value+='2'"> |
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 | |
/** | |
* ProcessWire 'Hello world' demonstration module | |
* | |
* Demonstrates the Module interface and how to add hooks. | |
* | |
* See README file for further links regarding module development. | |
* | |
* ProcessWire 2.x |
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
angular.module('myApp', | |
['ngRoute', 'myApp.services', 'myApp.directives'] | |
) | |
.config(function(AWSServiceProvider) { | |
AWSServiceProvider.setArn('arn:aws:iam::<ACCOUNT_ID>:role/google-web-role'); | |
}) | |
.config(function(StripeServiceProvider) { | |
StripeServiceProvider.setPublishableKey('pk_test_YOURKEY'); | |
}) | |
.config(function($routeProvider) { |
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 | |
//enlace el SDK de Facebook, junto con los datos del APP(ID y secret) | |
require_once('src/facebook.php'); | |
$facebook = new Facebook(array( | |
"appId"=>"768300403189668", | |
"secret"=>"b56fd624f2fba94c4eb54fdb2954a2bd" | |
)); | |
//creacion de variables con los datos de la noticia sacados de processwire |