Skip to content

Instantly share code, notes, and snippets.

View rabellamy's full-sized avatar

Robert Anthony Bellamy rabellamy

View GitHub Profile
/**
*
*/
class ContactFormMailSystem extends DefaultMailSystem {
public function format(array $message) {
$message['body'] = implode("\n\n", $message['body']);
$message['body'] = drupal_wrap_mail($message['body']);
return $message;
}
}
@rabellamy
rabellamy / SassMeister-input-HTML.html
Last active August 29, 2015 13:57
Generated by SassMeister.com.
<span class="test-test">Click Me!</span>
@rabellamy
rabellamy / SassMeister-input.scss
Last active August 29, 2015 13:57
Generated by SassMeister.com.
// ----
// Sass (v3.3.1)
// Compass (v1.0.0.alpha.18)
// Breakpoint (v2.4.1)
// Singularity.gs (v1.2.0.rc.6)
// ----
@import "compass";
@import "breakpoint";
@import "singularitygs";
{
"bold_folder_labels": true,
"caret_style": "blink",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"font_size": 15,
"highlight_line": false,
"ignored_packages":
[
*, *:after, *:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#!/bin/bash
usage() {
echo "Usage $0 branchname"
exit 1
}
if [ -z "$1" ]; then
usage
fi
gem 'compass-aurora', '~>3.0.0'
gem 'toolkit', '~>1.0.0'
gem 'singularitygs', '~>1.0.7'
gem 'breakpoint', '~>2.0.2'
@rabellamy
rabellamy / .gitconfig
Created December 11, 2013 15:31
git log is now cool.....
[alias]
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative --all
h = log --pretty=format:\"%C(cyan)%h %C(green)%ad%Creset | %s %C(yellow)%d %C(magenta)[%an]\" --graph --date=short
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]'
g = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
compass: {
files: ['sass/{,**/}*.scss'],
tasks: ['compass:dev']
@rabellamy
rabellamy / bowerNpmInstall
Created December 4, 2013 16:10
Here are the errors that I am receiving. I hope this helps. Thanks in advance.
╭─@rabellamy.pme.penton.com ~/Sites/NextAccelerator-style-prototype ‹system› ‹master*›
╰─ bower install & npm install 3 ↵
[2] 4983
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data