Skip to content

Instantly share code, notes, and snippets.

View psynaptic's full-sized avatar

Richard Burford psynaptic

View GitHub Profile
<?php
/**
* Menu callback; edit a comment from the administrative interface.
*/
function comment_admin_edit($cid) {
// Comment edits need to be saved.
if ($_POST['op'] == t('Submit')) {
$edit = $_POST['edit'];
comment_save($edit['cid'], $edit);
drupal_goto('admin/comment');
#vbseo_vhtml_0,
#google_translate_element,
#fb_headerbox,
.vbseo_buttons,
.socialheader,
#header form,
.logo-image img,
#thread_info,
#qr_defaultcontainer,
#posts .page,
testing gist cli
➜ ~ brew doctor
Error: class "Phpunit" expected but not found in phpunit.rb
Double-check the name of the class in that formula.
Error: Formula phpunit will not import.
Warning: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!
ERROR: Running exception handlers
ERROR: Exception handlers complete
FATAL: Stacktrace dumped to /var/folders/5d/_lj3xsn55tl8jq5p63wm2_3c0000gr/T/megalodon/cookbooks/chef-stacktrace.out
FATAL: Chef::Exceptions::Exec: package[mariadb] (mysql::mariadb line 20) had an error: Chef::Exceptions::Exec: brew install mariadb returned 1, expected 0
.bgGryDk,
.stdVMrgB,
.triHMrgL {
display: none;
}
span._test_trip_header_display_name {
font-weight: bold;
font-size: 2.5em;
margin: 5px 0;
# Unmerged paths:
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# deleted by them: includes/database.inc
# deleted by them: includes/database.mysql-common.inc
# deleted by them: includes/database.mysql.inc
# deleted by them: includes/database.mysqli.inc
# deleted by them: includes/database.pgsql.inc
# deleted by them: includes/image.gd.inc
# deleted by them: includes/install.mysql.inc
@psynaptic
psynaptic / breadcrump.twig
Created October 7, 2012 17:53 — forked from mortendk/breadcrump.twig
twig breadcrumbs
<nav class="breadcrumb" role="navigation">
<h2 class="element-invisible">{{ 'You are here'|t }}</h2>
<ol>
{% for item in breadcrumb %}
{% if loop.first %}
<li>{{ item }} » </li>
{% elseif loop.last %}
<li>{{ item }}</li>
{% else %}
<li>{{ item }} » </li>
set -o vi
bindkey -v '\e[A' history-beginning-search-backward-end
bindkey -v '\e[B' history-beginning-search-forward-end
bindkey -v '\e.' insert-last-word
bindkey -v '^R' history-incremental-pattern-search-backward
bindkey -v '^S' history-incremental-pattern-search-forward
bindkey '^W' backward-kill-word
bindkey '^H' backward-delete-char
bindkey '^U' backward-kill-line
bindkey '^?' backward-delete-char
<style>
.clients {
li {
width: 4.5em;
margin: 0 .5em .5em 0;
padding: 0;
line-height: 1em;
list-style: none;
background-color: #ccc;
}