Skip to content

Instantly share code, notes, and snippets.

View cweagans's full-sized avatar

Cameron Eagans cweagans

View GitHub Profile
diff --git a/Library/Formula/ctags.rb b/Library/Formula/ctags.rb
index 87dd0ca..919717e 100644
--- a/Library/Formula/ctags.rb
+++ b/Library/Formula/ctags.rb
@@ -12,6 +12,8 @@ class Ctags < Formula
# fixes http://sourceforge.net/tracker/?func=detail&aid=3247256&group_id=6556&atid=106556
def patches
+ # rewritten PHP parser
+ { :p1 => "http://sourceforge.net/p/ctags/patches/_discuss/thread/3a930d9f/1405/attachment/0000-PHP-parser-rewrite.patch" }
.field-name-field-image img {
float: right;
margin: 10px 12px;
border: 6px solid #EEEEEE;
width: 40%;
}
diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 60b086a..5fd2e71 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -922,7 +922,7 @@ function drupal_get_filename($type, $name, $filename = NULL) {
$extension = 'engine';
}
elseif ($type == 'theme') {
- $extension = 'info';
+ $extension = 'info.yml';
<?php
/**
* @file
* Definition of Drupal\Core\SystemListing.
*/
namespace Drupal\Core;
/**
$ ./heimdall flash --recovery recovery-clockwork-6.0.2.3-d2tmo.img
Heimdall v1.4 RC1
Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
@cweagans
cweagans / notes.md
Created November 24, 2015 22:20
Drupal.org Composer followups
  • Decide on subdir or subdomain for metadata
  • composer.json parsing -> project dependency
  • Decide on metadata structure (for caches)
  • Figure out how caching composer metadata works
  • Create project_composer project on d.o
  • Check HTTP auth support in Composer
  • Get decision on contrib semver
  • Define composer.json -> metadata merge rules
  • Translate submodule dependencies to package dependencies in composer metadata
  • Open issue on Packagist for federated metadata
@cweagans
cweagans / -
Created November 3, 2015 15:56
diff --git a/docroot/modules/custom/pc_editorial/pc_editorial.module b/docroot/modules/custom/pc_editorial/pc_editorial.module
index 30de354..0edaeb0 100644
--- a/docroot/modules/custom/pc_editorial/pc_editorial.module
+++ b/docroot/modules/custom/pc_editorial/pc_editorial.module
@@ -1,5 +1,7 @@
<?php
+use Drupal\Core\Form\FormStateInterface;
+
function pc_editorial_entity_type_alter(array &$entity_types) {

The annoying thing is not that they're calling and asking for money. It's that the frequency with which they do so is abusive, and that they're marketing the most to the wrong group of people (i.e. people that just graduated, who are statistically likely to be digging themselves out of a gigantic student loan). Alienating your donor pool before they're even able or willing to donate is not a good long-term strategy for - you know - getting donations.

The actual communications themselves are not really conducive to getting donations, either. Instead of reaching out with the equivalent of "Hi, money plz. kthxbai.", send a monthly email newsletter with what the Boone fund is actually doing with that money, along with any future initiatives that they want to pursue, and information about their fundraising goals and progress toward those goals. Then - as a FOOTNOTE - ask for money to help further these goals. It shouldn't be a header. It shouldn't be the subject of the email. It shouldn't be the opening line on t

@cweagans
cweagans / -
Created October 13, 2015 18:38
diff --git a/aws_sqs.services.yml b/aws_sqs.services.yml
index 4040cd8..8b9a833 100644
--- a/aws_sqs.services.yml
+++ b/aws_sqs.services.yml
@@ -1,3 +1,4 @@
services:
queue.awssqs:
- class: Drupal\aws_sqs\Queue\QueueAwsSqsFactory
\ No newline at end of file
+ class: Drupal\aws_sqs\Queue\AwsSqsQueueFactory
@cweagans
cweagans / gist:3945084
Created October 24, 2012 09:27
Die, common.inc, die!
# You may ask, "What's the point?" The point is to reduce the amount of crap that we MUST load on every page load. Even splitting some of these functions off into their own file and only loading them when needed will help.
# All of these functions are currently in common.inc. Filenames below that start with a capital letter are new proposed autoloaded classes.
common.inc:
function drupal_get_profile() {
function drupal_get_query_parameters(array $query = NULL, array $exclude = array(), $parent = '') {
function drupal_get_query_array($query) {
function drupal_http_build_query(array $query, $parent = '') {
function drupal_get_destination() {
function drupal_encode_path($path) {