Skip to content

Instantly share code, notes, and snippets.

@DrDurco
DrDurco / jquery.imagesloaded.js
Created December 7, 2012 21:26 — forked from desandro/jquery.imagesloaded.js
jQuery: $.fn.imagesLoaded jQuery plugin
// $('img.photo',this).imagesLoaded(myFunction)
// execute a callback when all images have loaded.
// needed because .load() doesn't work on cached images
// Modified with a two-pass approach to changing image
// src. First, the proxy imagedata is set, which leads
// to the first callback being triggered, which resets
// imagedata to the original src, which fires the final,
// user defined callback.
@DrDurco
DrDurco / gist:1999405
Created March 8, 2012 07:30
HTML: Prompt Chrome Frame
<!-- Prompt IE6 users to install Chrome Frame -->
<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
<![endif]-->
@DrDurco
DrDurco / gist:1999401
Created March 8, 2012 07:29
CSS: Image Replacement
.ir {
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@DrDurco
DrDurco / config.php
Created March 7, 2012 19:53 — forked from pujie/config.php
CODEIGNITER: menu library
/*
add this to your config.php
*/
$config['css']='css_style.css';
@DrDurco
DrDurco / gist:1995294
Created March 7, 2012 19:24 — forked from etienne-snippet/gist:1993145
CODEIGNITER: Model
<?php
class User_model extends CI_Model {
function __construct()
{
parent::__construct();
}
}
@DrDurco
DrDurco / codeigniter_htaccess
Created March 7, 2012 19:24 — forked from JOakley77/codeigniter_htaccess
CODEIGNITER: htaccess
RewriteEngine On
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1
@DrDurco
DrDurco / gist:1995290
Created March 7, 2012 19:23 — forked from etienne-snippet/gist:1993131
CODEIGNITER: controller
<?php
class Blog extends CI_Controller {
public function __construct()
{
parent::__construct();
// Your own constructor code
}
}
@DrDurco
DrDurco / h5bp-twitter-bootstrap
Created March 7, 2012 19:11 — forked from paulirish/h5bp-twitter-bootstrap
h5bp + twitter bootstrap integration
#!/bin/sh
echo "
Cool, let's start.
"
src=$PWD
@DrDurco
DrDurco / README.md
Created March 7, 2012 18:35 — forked from paulirish/README.md
JQUERY: imagesLoaded() plugin