This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config
.
var sort = function(array) { | |
var len = array.length; | |
if(len < 2) { | |
return array; | |
} | |
var pivot = Math.ceil(len/2); | |
return merge(sort(array.slice(0,pivot)), sort(array.slice(pivot))); | |
}; | |
var merge = function(left, right) { |
/* | |
* Grid Overlay for Twitter Bootstrap | |
* Assumes a 1.692em baseline grid (22px/13px) | |
*/ | |
@media (min-width: 1200px) { | |
body { | |
background: -webkit-gradient(linear, top left, bottom left, color-stop(0%, rgba(0, 0, 0, 0.05)), color-stop(4.545%, rgba(0, 0, 0, 0.05)), color-stop(4.545%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))), -webkit-gradient(linear, top left, top right, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(35%, rgba(0, 0, 0, 0)), color-stop(35%, rgba(0, 0, 0, 0.05)), color-stop(36%, rgba(0, 0, 0, 0.05)), color-stop(36%, rgba(0, 0, 0, 0)), color-stop(65%, rgba(0, 0, 0, 0)), color-stop(65%, rgba(0, 0, 0, 0.05)), color-stop(66%, rgba(0, 0, 0, 0.05)), color-stop(66%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 0))), -webkit-gradient(linear, top left, top right, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(0.085%, rgba(0, 0, 0, 0.1)), color-stop(0.085%, rgba(0, 0, 0, 0))); | |
background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba( |
<h4>Inspired by <a href="http://webdesignerwall.com/tutorials/css3-image-styles">http://webdesignerwall.com/tutorials/css3-image-styles</a></h4> | |
<div class="box normal"> | |
<h3>Normal Image (without jQuery background image wrap)</h3> | |
<a href="http://bootsnipp.com"><img src="http://png.findicons.com/files/icons/2682/construction/128/22.png" ></a> | |
<a href="http://bootsnipp.com"><img src="http://png.findicons.com/files/icons/2682/construction/128/21.png"></a> | |
<a href="http://bootsnipp.com"><img src="http://png.findicons.com/files/icons/2682/construction/128/20.png"></a> | |
</div> | |
# First install requirements for BREW | |
# http://mxcl.github.com/homebrew/ | |
# https://github.com/mxcl/homebrew/wiki/installation | |
# Requirements | |
# - An Intel CPU 2 | |
# - OS X 10.5 or higher | |
# - Command Line Tools for Xcode (https://developer.apple.com/downloads) | |
# or Xcode with X11 (http://itunes.apple.com/us/app/xcode/id448457090) | |
# - Java Developer Update (https://connect.apple.com/) |
apt-get install unzip nginx mysql-server \ | |
php5-fpm php5-cli php5-mysql php5-curl php5-gd \ | |
php5-idn php-pear php5-imagick php5-imap php5-mcrypt \ | |
php5-memcache php5-mhash php5-ming php5-pspell \ | |
php5-recode php5-snmp php5-sqlite php5-tidy \ | |
php5-xmlrpc php5-xsl |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>{Title}{block:PostSummary} — {PostSummary}{/block:PostSummary}</title> | |
{block:Description}<meta name="description" content="{MetaDescription}">{/block:Description} | |
<link rel="shortcut icon" href="{Favicon}"> |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config
.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* fixes chmod issues | |
* | |
* @author Mike Funk | |
* @email [email protected] | |
* | |
* @file MY_Log.php | |
*/ |
<?php | |
class ImageManipulator | |
{ | |
/** | |
* @var int | |
*/ | |
protected $width; | |
/** | |
* @var int |