Skip to content

Instantly share code, notes, and snippets.

View chrisjlee's full-sized avatar
💭
🏈

Chris J. Lee chrisjlee

💭
🏈
View GitHub Profile
#!/bin/bash
# Download Drush v3 from D.O and make it work on `drush` (OS X / Linux / *nix)
# Written by stemount, adapted by KarenS
# Last updated by Drupalise IT (http://drupalise.it) on 13 Sep 2010
# Update user
echo "Drush is now downloading via HTTP"
# move to home dir
@chrisjlee
chrisjlee / responsive-images.php
Created November 14, 2011 19:47 — forked from mattwiebe/responsive-images.php
Wordpress Plugin - Responsive Images
<?php
/*
Plugin Name: Mobile First Responsive Images
Description: Serve up smaller images to smaller screens.
Version: 0.1.1
Author: Matt Wiebe
Author URI: http://somadesign.ca/
*/
/**
@chrisjlee
chrisjlee / _960.scss
Created March 6, 2012 19:58
SASS adaptation of 960 GS
// SASS adaptation of 960 GS
// IMPORTANT: This adaption does not use Global Variables and thus requires that in the file you are importing these mixins into, you must first declare a function called grid_vars in which you define all your parameters. This allows us pass different starting variables to the mixins here and generate different layouts for different device sizes.
$separator:"-";
$container_width : grid_vars("container_width");
$col_count : grid_vars("col_count");
$col_gutter : grid_vars("col_gutter");
$col_width : ( $container_width / $col_count ) - $col_gutter;
@chrisjlee
chrisjlee / 960gs.scss
Created April 4, 2012 02:51 — forked from jmblog/960gs.scss
960gs.scss
/*-----------------------------------------------------
960 Grid System ~ Core CSS.
Learn more ~ http://960.gs/
Licensed under GPL and MIT.
-------------------------------------------------------*/
/* Grid Settings
---------------------------*/
// 12-column grid
@chrisjlee
chrisjlee / gist:2968678
Created June 21, 2012 21:37 — forked from globerunnerseo/gist:2968561
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@chrisjlee
chrisjlee / ie-cc-1.html
Created June 22, 2012 21:02 — forked from necolas/ie-cc-1.html
Conditional classes test cases: DRYer and Compat View icon is not displayed in IE8/9. If X-UA-Compatible header is set using a server config then ie-cc-serverconfig.html is all that is needed.
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<!--[if lt IE 7]><html class="no-js ie6"><![endif]-->
<!--[if IE 7]><html class="no-js ie7"><![endif]-->
@chrisjlee
chrisjlee / SzovegType.php
Created July 17, 2012 21:46
example form class in Silex
<?php
namespace Insolis\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
class SzovegType extends AbstractType
{
@chrisjlee
chrisjlee / app.nginx.conf
Created July 18, 2012 14:15 — forked from chanmix51/app.nginx.conf
nginx vhost conf silex & symfony
server {
listen 80;
server_name server.mydomain.net
root /var/www/app/web;
index index.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
@chrisjlee
chrisjlee / index.php
Created July 18, 2012 14:30 — forked from ivoba/index.php
Tweaked Symfony2 bootstrap file
<?php
/**
* Tweaked Symfony2 bootstrap file
*/
// if you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
umask(0000);
if ( file_exists( dirname(__FILE__).'/../.env.php' ) ){
@chrisjlee
chrisjlee / output.css
Created August 2, 2012 21:25 — forked from aquelito/output.css
SCSS Compass Font Size - Vertical Rhythm
html {
font: 100%/1.5em "Helvetica Neue", Helvetica, Arial, sans-serif; }
h1, .h1 {
font-size: 4em;
line-height: 1.5em;
margin: 0.5em 0; }
h2, .h2 {
font-size: 3em;