Skip to content

Instantly share code, notes, and snippets.

View CashWilliams's full-sized avatar

Cash Williams CashWilliams

View GitHub Profile
@johnkary
johnkary / gist:2981125
Created June 24, 2012 02:33
Misko Hevery - Clean Code Talks
Clean Code Talks
by Misko Hevery
Unit Testing
http://www.youtube.com/watch?v=wEhu57pih5w
Don't Look For Things!
http://www.youtube.com/watch?v=RlfLCWKxHJ0
Inheritance, Polymorphism, & Testing
@jacine
jacine / .htaccess
Created December 1, 2011 23:10
My favorite Drupal trick for local theme development
# Find this line and insert the code below it (adapted to use your sitename/server).
# RewriteBase /
# Use files on the dev server instead of syncing them locally.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^sites/sitename/(files/.*)$ http://dev.whatever.com/sites/sitename/$1 [L,QSA]
@hahmed
hahmed / gist:1167789
Created August 24, 2011 11:04
Aloha Text colour plugin sample...
/**
* Text Color Plugin
*/
GENTICS.Aloha.TextColor = new GENTICS.Aloha.Plugin('TextColor');
/**
* Configure the available languages
*/
GENTICS.Aloha.TextColor.languages = ['en', 'ru'];