Skip to content

Instantly share code, notes, and snippets.

View rupl's full-sized avatar
💭
¯\_(ツ)_/¯

Chris Ruppel rupl

💭
¯\_(ツ)_/¯
View GitHub Profile
@rupl
rupl / gist:2172739
Created March 23, 2012 16:55
Starter .gitconfig
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@rupl
rupl / gist:2121547
Created March 19, 2012 17:56
RWD Denver Training mobile-first rough example
html, body {
padding: 0;
}
html {
-webkit-box-shadow: inset 0px 0px 55px 0px rgba(0, 0, 0, 0.2);
-moz-box-shadow: inset 0px 0px 55px 0px rgba(0, 0, 0, 0.2);
box-shadow: inset 0px 0px 55px 0px rgba(0, 0, 0, 0.2);
}
@rupl
rupl / gist:2048533
Created March 16, 2012 04:39
Conditional classes (but not specifying UA)
<!--[if (lte IE 8)&(!IEMobile)]><html class="no-mq"><![endif]-->
<!--[if (gte IE 9)|(IEMobile)]><!--><html><!--<![endif]-->
@rupl
rupl / settings.php
Created August 19, 2011 21:56
Allows regular drush commands without -l arg when using super awesome dynamic vhost
/**
* Allow developers to override settings.
*/
define('SWEET_ASS_STAGE_SETTINGS_REGEX', '/^(dca11\.webchefs\.org|dca11\.dev1\.fourkitchens\.com)(:\d+)*$/');
define('SWEET_ASS_USER_SETTINGS_REGEX', '/^(.*)\.(.*)\.(webchefs\.org|dev1\.fourkitchens\.com)(:\d+)*$/');
if (preg_match(SWEET_ASS_USER_SETTINGS_REGEX, $_SERVER['HTTP_HOST'], $matches)) {
// Load general dev settings.
if (file_exists('sites/default/settings.dev.php')) {
include_once 'sites/default/settings.dev.php';
@rupl
rupl / wat.html
Created August 5, 2011 17:43 — forked from pifantastic/wat.html
<ul>
<li>1.0
<li>2.0
<ul>
<li>2.1
<li>2.2
^ this would render incorrectly
VS.