Skip to content

Instantly share code, notes, and snippets.

View vrushank-snippets's full-sized avatar

Vrushank vrushank-snippets

View GitHub Profile
<?php
/* Return object of shared counts */
function get_social_count( $link ) {
$r = (object)array();
$r->facebook = get_social_count_facebook($link);
$r->twitter = get_social_count_twitter($link);
$r->gplus = get_social_count_gplus($link);
return $r;
}
@vrushank-snippets
vrushank-snippets / codeigniter_htaccess
Created March 23, 2012 10:27 — forked from muhittin/codeigniter_htaccess
CodeIgniter : htaccess
RewriteEngine On
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1
@vrushank-snippets
vrushank-snippets / Model
Created March 23, 2012 10:30 — forked from etienne-snippet/gist:1993145
CodeIgniter: Model
<?php
class User_model extends CI_Model {
function __construct()
{
parent::__construct();
}
}
/* Facebook Simple Styles */
/*
Add to your user stylesheet to activate.
Preview a screenshot at http://cl.ly/E8I3.
+ Removes a bunch of panels, including chat, ads, status update form, apps, etc.
+ Center aligns the page.
+ Hides search bar until hover. Expands search bar to page width.
+ Expand image sizes by 140%. Adds rounded corners to images.
+ Hide comments until hover, then popover.