Skip to content

Instantly share code, notes, and snippets.

View psynaptic's full-sized avatar

Richard Burford psynaptic

View GitHub Profile
Amaya
Become
Blazer
Blue Coat Systems
Boitho
Boxee
Brew
Chimera
Convera
Copyright/Plagiarism
Android
BlackBerry
Blazer
Fennec
IEMobile
iPhone
iPod Touch
Microsoft Zune
Motorola Internet Browser
NetFront
#application-tabs {
display: none;
}
#omnibar-container {
display: none;
}
.aui-theme-default #content {
padding: 0;
}
#dashboard-content {
<?php
$published_day_attributes = (empty($variables['rdf_template_variable_attributes_array']['date'])) ? array() : $variables['rdf_template_variable_attributes_array']['date'];
$published_day_attributes['class'][] = 'published';
$published_day_attributes['title'][] = (empty($variables['rdf_template_variable_attributes_array']['date']['content'])) ? '' : $variables['rdf_template_variable_attributes_array']['date']['content'];
$published_day_title = format_date($variables['created'], 'custom', 'F d, Y');
$variables['content']['links_top']['#links']['published_day'] = array(
'title' => $published_day_title,
'attributes' => $published_day_attributes,
);
#application-tabs {
display: none;
}
#omnibar-container {
display: none;
}
.aui-theme-default #content {
padding: 0;
}
#dashboard-content {
count_changes () {
stdin=$(cat /dev/stdin)
lines=$(echo "$stdin" | wc -l)
changes=$(echo "$stdin" | grep "^[+-][^+-]" | wc -l)
removed=$(echo "$stdin" | grep "^-[^-]" | wc -l)
added=$(echo "$stdin" | grep "^+[^+]" | wc -l)
echo total $lines lines. $changes altered: $removed removed, $added added.
}
<?php
drush_print_r(variable_get('site_name', 'Drupal'));
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="robbyrussell"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
call pathogen#infect()
call pathogen#helptags()
syntax on
set background=dark
colorscheme solarized
syntax sync minlines=50 " only sync 50 lines of syntax highlighting around the cursor
set nocursorline " don't highlight the screen line of the cursor
set nocursorcolumn " don't highlight the column of the cursor
--type-set=drupal=.module,.inc,.install,.info
--type-add=css=.less
--ignore-dir=drush
--ignore-dir=libraries
--ignore-dir=simpletest
--ignore-dir=parc
--ignore-dir=jquery_plugin
--ignore-dir=misc