Skip to content

Instantly share code, notes, and snippets.

@zhouming
zhouming / MY_Session.php
Created September 8, 2012 05:51
Use redis in Codeigniter Session.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Session extends CI_Session{
private $sess_use_redis = TRUE;
private $redis = '';
public function __construct($params = array()) {
//parent::__construct();
$this->CI =& get_instance();
console.log('文艺青年');
alert('Hello World');
String.prototype.trim = function(){}
@zhouming
zhouming / gist:2262185
Created March 31, 2012 11:08
First Gist
var a = 1;
ar b = 2;
console.log(a+b);