Skip to content

Instantly share code, notes, and snippets.

View jeremyricketts's full-sized avatar

Jeremy Ricketts jeremyricketts

View GitHub Profile
@anthonyshort
anthonyshort / _media-queries.scss
Created March 13, 2012 10:37
Media Queries in Sass
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break
@sashasklar
sashasklar / maximize.jquery.js
Created February 8, 2011 23:39
jQuery snippet for making an element "full screen" in mobile browsers. Includes hiding the address bar and silencing scroll events in jQuery Mobile.
(function($) {
$.maximize = function() {
var $body = $('body');
// prevent scrollstart and scrollstop events from fireing in jquery mobile
if ($.event.special.scrollstart) {
$.event.special.scrollstart.enabled = false;
}
// expand the body so there's enough room for the address bar to scroll out of view
@kevinthompson
kevinthompson / .htaccess
Created January 27, 2011 03:38
ExpressionEngine Rewrite Rules
<IfModule mod_rewrite.c>
# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /
# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
<?php
/**
* Custom configuration bootstrap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config_bootstrap.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*