Skip to content

Instantly share code, notes, and snippets.

@katbailey
katbailey / planout_webapp.py
Created April 12, 2014 17:51
planout_webapp
import random
from uuid import uuid4
from flask import (
Flask,
jsonify,
session,
request,
redirect,
url_for,
render_template_string
@katbailey
katbailey / acquia_lift.make
Created March 3, 2014 16:29
Acquia Lift make file
; call this file like this:
; drush make --working-copy acquia_lift.make acquia_lift
api = 2
core = 7.x
projects[drupal][type] = core
projects[drupal][version] = "7.26"
; Modules =====================================================================
@katbailey
katbailey / d8-combined-1599108-and-1269742.patch
Created July 8, 2012 00:56
Drupal 8 combined bundle and path alias patch
diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 0551e56..43f5f1b 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -3,7 +3,8 @@
use Drupal\Core\Database\Database;
use Symfony\Component\ClassLoader\UniversalClassLoader;
use Symfony\Component\ClassLoader\ApcUniversalClassLoader;
-use Drupal\Core\DependencyInjection\ContainerBuilder;
+use Symfony\Component\DependencyInjection\Container;
diff --git a/docroot/sites/all/modules/media/file_entity/file_entity.info b/docroot/sites/all/modules/media/file_entity/file_entity.info
index 04e77fe..2435168 100644
--- a/docroot/sites/all/modules/media/file_entity/file_entity.info
+++ b/docroot/sites/all/modules/media/file_entity/file_entity.info
@@ -5,9 +5,9 @@ core = 7.x
dependencies[] = field
dependencies[] = ctools
-; Information added by drupal.org packaging script on 2012-01-12
-version = "7.x-1.0-rc3"
<?php
/**
* Implements hook_theme().
*/
function rwce_distro_theme($existing, $type, $theme, $path) {
return array(
'rwce_friendly_message' => array(
'template' => 'rwce-friendly-message',
'path' => $path . '/templates',
function rwce_distro_update_aof_terms() {
$taxonomy_term_data = array(
// People
'creating access and equality' => array(
'name' => 'Creating access and equality',
'description' => 'Support equality-seeking organizations to enhance access to human rights, housing, employment and financial services, particularly for traditionally marginalized populations.',
'weight' => 0,
'icon' => 'aof_accessequality.png'
),
'financial knowledge' => array(
From 14bc63be8d9a19cdbedaa4b48c7729591f33555e Mon Sep 17 00:00:00 2001
From: Katherine Bailey <katherine@katbailey.net>
Date: Tue, 3 Jan 2012 16:18:28 -0800
Subject: [PATCH] Redoing Tom's patch for the highlighted state etc
---
collapsible_widget.inc | 62 +++++++++++++++++++++++++++++++++++++++++++
facetapi_collapsible.css | 3 +-
facetapi_collapsible.module | 23 ++++++++++++++-
3 files changed, 85 insertions(+), 3 deletions(-)
<?php
/**
* Implements hook_field_formatter_info().
*/
function mymodule_field_formatter_info() {
return array(
'default_image_formatter' => array(
'label' => t('Image with default'),
'field types' => array('imagefield'), // check that this is the field type name
@katbailey
katbailey / qt_accordion.js
Created November 22, 2011 22:34
Quicktabs Accordion JS
(function ($) {
Drupal.behaviors.qt_accordion = {
attach: function (context, settings) {
var qt_options = Drupal.settings.quicktabs;
var history_enabled = false;
$('.quick-accordion', context).once(function(){
var qtKey = 'qt_' + this.id.substring(this.id.indexOf('-') +1);
var options = Drupal.settings.quicktabs[qtKey].options;
if (options.history) {
var sys=require('sys'), http = require('http');
var target = "node.js";
var since = 0;
var options = {
host: 'search.twitter.com',
port: 80,
path: "/search.json?q=" + target + "&since_id="+since,
method: 'GET'
};