Skip to content

Instantly share code, notes, and snippets.

@delmarr
delmarr / .ackrc
Last active May 3, 2019 23:42 — forked from kevinold/.ackrc
#ack is a tool like grep, designed for programmers with large trees of heterogeneous source code
#to install ack, see http://betterthangrep.com/
#to use ack, launch terminal (mac osx) and type 'ack <some_keywords>'
#ack will search all files in the current directory & sub-directories
#here's how I have my config file setup. this file is located on mac osx here
# ~/.ackrc
# Always sort the files

Keybase proof

I hereby claim:

  • I am delmarr on github.
  • I am delmarr (https://keybase.io/delmarr) on keybase.
  • I have a public key whose fingerprint is 4648 6C00 692B 4D08 1AC0 5A3E 276E 8C03 2DA9 BEAA

To claim this, I am signing this object:

<?php
/**
* @file
* Twitter Pull bean plugin.
*/
class TwitterPullBean extends BeanPlugin {
/**
* Declares default block settings.
*/
@delmarr
delmarr / template.php
Last active September 26, 2015 14:12
grabbing term from preprocess_page
if(!empty($vars['node'])) {
$tid = $vars['node']->field_template[LANGUAGE_NONE][0]['tid'];
$term = taxonomy_term_load($tid);
// Removes empty spaces and sets to lowercase
$term_name = str_replace(' ', '_', strtolower($term->name));
$vars['theme_hook_suggestions'][] = 'page__article__' . $term_name;