Skip to content

Instantly share code, notes, and snippets.

View harris21's full-sized avatar
🏝️
Working from my hammock

Harris Raftopoulos harris21

🏝️
Working from my hammock
View GitHub Profile
@harris21
harris21 / Migration Create Sessions
Created January 19, 2013 19:47
Create CodeIgniter Sessions Migration
class Migration_Create_Sessions extends CI_Migration {
public function up()
{
$fields = array(
'session_id VARCHAR(40) DEFAULT \'0\' NOT NULL',
'ip_address VARCHAR(45) DEFAULT \'0\' NOT NULL',
'user_agent VARCHAR(120) NOT NULL',
'last_activity INT(10) unsigned DEFAULT 0 NOT NULL',
'user_data text NOT NULL'
@harris21
harris21 / HTML 5 Generate
Created January 19, 2013 18:03
HTML 5 Generate
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>New HTML5 Document</title>
</head>
<body>
</body>