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 / settings-router.php
Last active September 27, 2015 07:47
Drupal Settings file router - localhost / etc
/*
* At the end of the settings.php file for drupal add these lines
*/
/*
* Settings file routing
*/
if (file_exists(dirname(__FILE__) . '/local.settings.php')) {
include dirname(__FILE__) . '/local.settings.php';
}
@chrisjlee
chrisjlee / helpers.css
Created September 23, 2011 14:10
CSS Helpers - Styles to put at the end of your stylesheet that accomplish common tasks
/*****************************************
Required: Do Not Modify
******************************************/
/**
* Clearfix Helpers 0.5.0
* by Chris J. Lee
*
* These are primarily tools to reduce
* the amount of style rewriting. These
@chrisjlee
chrisjlee / append.inc
Created October 6, 2011 21:07
Append.inc plugin for feeds_tamper plugin
<?php
/**
* @file
* Copy value from one source to another.
*/
$plugin = array(
'form' => 'feeds_tamper_append_form',
'callback' => 'feeds_tamper_append_callback',
@chrisjlee
chrisjlee / create folders for drupal
Created November 12, 2011 04:15
prep.sh - create folders and change permissions for drupal installation
#!/bin/sh
echo "Preparing Drupal"
echo "===================================="
sudo cp -vf www/sites/default/default.settings.php www/sites/default/settings.php
echo "Copied settings file!"
sudo chmod 777 www/sites/default/settings.php
echo "Changed Permissions to settings.php ..."
@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 / 2012DrupalconDenver-DesigningMaps
Created March 20, 2012 23:27
Drupalcon Denver 2012 - Designing Maps
Tools to use
* Tilemill (http://mapbox.com/tilemill/index.html)
About Tilemill
* Available on Windows, Mac, and linux
* Support shape files
* Uses code called carto to describe and create map. Code similar to css
* Very easy doesn't require a database
* can create maps on fly
@chrisjlee
chrisjlee / 2012dcdenver-garfield
Created March 21, 2012 16:55
Drupalcon Denver 2012 - Larry Garfield Fast Friendly Architecture
Drupalcon Denver 2012 - Larry Garfield Fast Friendly Architecture
Consider example of classic car
* axles had issues
* turning had dependancies
Right vs. wrong
* Finding balance
* Architectural choices are not good or bad
* Architectural choices actually appropriate or not appropriate
@chrisjlee
chrisjlee / drupalcondenver2012-fabpotsymfonymeetsdrupal.txt
Created March 21, 2012 19:25
Drupalcon Denver 2012 - Symfony meets Drupal 8 by Fabien Potencier
Collaboration
- symfony code based on github
- GPL / MIT license compatible
Example of Symfony vs Drupal
- drupal_set_message() vs flash messages
- drupal team evaluated
What is symfony (version 2) ?
- symfony version 1 is totally different