Skip to content

Instantly share code, notes, and snippets.

@anthonyterrell
anthonyterrell / datatableSort.php
Last active February 18, 2016 16:29
jQuery datatable server side column sorting. This is done in PHP, more specifically Laravel 5.2.*
if($request->get('order')[0]['column']){
$data->orderBy($request->get('columns')[$request->get('order')[0]['column']]['data'], $request->get('order')[0]['dir']);
}
@anthonyterrell
anthonyterrell / NoCount.css
Created April 5, 2013 16:21
These styles remove the section which displays a count or who else "liked." This is not my code but am unable to find it's original source. I've been using it for some time now and it's pretty bullet proof. Facebook Like Button: https://developers.facebook.com/docs/reference/plugins/like/
.fb-like {
width: 50px;
height: 30px;
overflow: hidden;
}
div.likewrap span.fb_edge_comment_widget{
display: none !important;
}
@anthonyterrell
anthonyterrell / FlickrComponent.php
Created March 24, 2013 23:13
Flickr set component for CakePHP
<?php
/**
* Flickr Component
*
* This file will share logic to your controller
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)