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
//- For use with https://github.com/CREEATION/laravel-elixir-jade | |
mixin blade() | |
='\r\n' | |
block | |
='\r\n' | |
mixin phpblock() | |
!='\r\n<?php ' |
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
Steps to set Ejabberd with Hook : | |
1. Install Ejabberd : | |
apt-get -y install ejabberd | |
2. Create Admin User of Ejabberd Panel : | |
ejabberdctl register admin localhost password | |
For our example we will call our admin user "admin@localhost" and modify the following lines in /etc/ejabberd/ejabberd.cfg: |
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
<script type="text/javascript" src="/js/jquery.complexify.js"></script> | |
<script type="text/javascript"> | |
$("#password").complexify(options, callback(valid, complexity){ | |
alert("Password complexity: " + complexity); | |
}); | |
</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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Extend · Bootstrap</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
</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
#BECOME SUPER USER# | |
sudo -i | |
#add sublime to repository# | |
add-apt-repository ppa:webupd8team/sublime-text-2 | |
#update# |
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
/* | |
printf | |
sprintf | |
sscanf | |
*/ | |
// printf("This post was made on %s %s, %d", 'June', '7th', '2012'); | |
//$posted = sprintf("This post was made on %s %s, %d", 'June', '7th', '2012'); |
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
//Only returns columns from table1 | |
SELECT table1 * from table1 INNER JOIN table2 on table1.id=table2.id; | |
//Returns all columns | |
SELECT * from table1 INNER JOIN table2 on table1.id=table2.id; |
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
/* | |
function getAll() { | |
$q = $this->db->query("SELECT * FROM data"); | |
if($q->num_rows() > 0) { | |
foreach($q->result() as $row) { | |
$data[] = $row; | |
} | |
return $data; | |
} | |
} |
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
/************************************************************************* | |
Loading a Config File | |
**************************************************************************/ | |
/*---------------------------------- | |
Manual Loading | |
----------------------------------*/ | |
$this->config->load('filename'); | |
/************************************************************************* | |
Fetching Config Items | |
**************************************************************************/ |
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
<!-- ************************************************************************** --> | |
<!-- Load multiple Views --> | |
<!-- ************************************************************************** --> | |
<?php | |
class Page extends CI_Controller { | |
function index() | |
{ | |
$data['page_title'] = 'Your title'; |
NewerOlder