Skip to content

Instantly share code, notes, and snippets.

@jblac
jblac / 0_reuse_code.js
Created May 31, 2017 15:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jblac
jblac / gist:4756430
Last active December 12, 2015 10:08 — forked from donaldallen/gist:4756420
$count = $this->bookings->where('archive != 0')->where('status', Status::get('accepted')->id)->count_all()
$config['base_url'] = site_url('admin/creatives/manage');
$config['uri_segment'] = 4;
$config['total_rows'] = $count;
$config['per_page'] = '20';
$config['num_links'] = '10';
$this->pagination->initialize($config);