Skip to content

Instantly share code, notes, and snippets.

View taleeb35's full-sized avatar

taleeb35

  • United Arab Emirates
View GitHub Profile
<?php include("phpmailer/PHPMailerAutoload.php");
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Host = 'smtp.sendgrid.net';
$mail->SMTPAuth = true;
$mail->Username = 'takmeel'; // SMTP username
$mail->Password = 'shineE065'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 25; // TCP port to connect to
var app=angular.module('starter', ['ionic', 'ui.router']);
app.controller('linksCtrl', function ($scope,$http) {
$http.get("papers.com.pk/API/api/json_files/03-08-2015.json")
.success(function (response) {
$scope.ads = response;
});
});
<!-- View File -->
<div id="data">
<div class="container-fluid max-width">
<div class="row">
<div class="project-detail clearfix">
<div class="col-md-4 portfolio_view">
<h2><?php echo CHtml::encode( $model->address ); ?>
<?php if ( $model->city ): ?>
, <?php echo CHtml::encode( $model->city->name ); ?>
<div data-role="page" id="page2">
<div data-role="header">
<div class="row">
<div class="container">
<div class="col-xs-4 back_button">
<a href="#" data-role="button" data-direction="reverse" data-icon="arrow-l" data-iconpos="left" data-theme="b" data-rel="back">Back</a>
</div>
<div class="col-xs-4">
<img src="img/logo.png">
http://www.fourfront.us/blog/store-html-table-data-to-javascript-array
http://jsfiddle.net/cnsnk/377/
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
var count = 0;
var value = $('#cart').text();
//console.log(value);
$(".checkbox").click(function(){
var counts = $("[type='checkbox']:checked").length;
if(counts > 0){
$('#cart').html(value + '(' + counts +')');
<?php
session_start();
$xmlStr = file_get_contents("test.txt");
$modified_time = filemtime("test.txt");
$twenty_minutes = strtotime("+1 minutes", $modified_time); // Add 20 minutes to the modified time
$current_time = time();
if (file_exists("test.txt") && $current_time < $twenty_minutes) { ?>
<html>
<?php
$obj = json_encode($task_list ,TRUE);
// $xml = $obj['task_list']['id'];
//var_dump($obj);
//foreach($obj as $doc) {
// $xml = simplexml_load_string($obj);
var_dump($xml);
// }
public function get_assigned_task_list($email,$password) {
if(!empty($email) && !empty($password)) {
if(isset($email) && isset($password)) {
$this->loadModel('User');
$user = $this->User->findByEmailAndPassword($email,$password);
if($user) { // If Password and email matched
@taleeb35
taleeb35 / web
Created January 5, 2015 09:04
XML
<style>
.tablemain{
font-family: Helvetica, Arial, sans-serif;
font-size:14px;
width:100%
}
.tablemain td{
padding:10px 5px;