Skip to content

Instantly share code, notes, and snippets.

Avatar

Cottser

  • Digital Echidna
  • Canada
View GitHub Profile
@Cottser
Cottser / Custom.css
Created Sep 27, 2011
IR_Black Theme (with sidebar and view-source colors) for Chrome Developer Tools
View Custom.css
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@Cottser
Cottser / module.module
Created Sep 26, 2011
Band-aid fixes for conflict between Block Title Link and Menu Block modules (D7)
View module.module
<?php
// Mini module to remove Block Title Link options from Menu Block blocks
function MODULE_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'block_admin_configure') {
$module = $form['module']['#value'];
if ($module == 'menu_block') {
// remove fieldset
unset($form['settings']['block_titlelink']);
@Cottser
Cottser / block.tpl.php
Created Sep 23, 2011
HTML5 block-level links for Drupal 7 blocks
View block.tpl.php
<?php // Replace this: ?>
<?php print $content; ?>
<?php // With this: ?>
<?php if (isset($block->title_link)): ?>
<?php print l($content, $block->title_link, array('attributes' => array('title' => $block->title_link_title), 'html' => TRUE)); ?>
<?php else: ?>
<?php print $content; ?>
@Cottser
Cottser / quix.txt
Created Sep 17, 2011
Quix config file
View quix.txt
> This is a Quix Command File
>
> For the syntax of this file, please refer to http://quixapp.com/syntax/
>
@Duck Duck Go replacements
g http://duckduckgo.com/?q=%s
gs http://duckduckgo.com/?q=site:%d%20%s
@Cottser
Cottser / bootstrap.local.php
Created Oct 8, 2010
Local bootstrap file for debugging. Place at config/bootstrap.local.php
View bootstrap.local.php
<?php
Configure::write('debug', 2);
?>
You can’t perform that action at this time.